Pregunta de entrevista de Epic

As in the online programming problems