Pergunta de entrevista da empresa Reev

simple code was given and the problems should have been explained