Pergunta de entrevista da empresa Mitsogo

To solve a logical question