Pregunta de entrevista de Accenture

Not that difficult