Pregunta de entrevista de Accenture

Regarding some large code to write