Pregunta de entrevista de PlayStation

How would you approach solving this issue?