Pregunta de entrevista de GFT Technologies

don't remember. Some simple algorithm.