Pregunta de entrevista de Entelect

How did you solve the coding problem?