Pregunta de entrevista de Fractal

Binary to integer conversion. Similar to leet code medium