Pregunta de entrevista de Motorola Solutions

How do you solve the problem