Pregunta de entrevista de Goodreads

A question combining base conversion and string manipulation, was not too difficult.