Pergunta de entrevista da empresa GFT Technologies

don't remember. Some simple algorithm.