Pregunta de entrevista de Arm

Explain your solution to the coding problem and how it could be improved.