Pergunta de entrevista da empresa MoreSteam

It was a simulation challenge.