ECI Telecom interview question

Java program on binary to integer conversion.