Pregunta de entrevista de Lumenalta

A fairly straightforward programming assignment.