Pergunta de entrevista da empresa Futurex

General programming assignment question.