Pregunta de entrevista de Futurex

General programming assignment question.