Pregunta de entrevista de Burger King

How to solve this issue?