Pregunta de entrevista de Accenture

How would you code?