Pergunta de entrevista da empresa Eaton

wasn't expecting the code review question