Pregunta de entrevista de Samsung Electronics

How did you solve the problem?