Pergunta de entrevista da empresa BairesDev

Quick math solutions that required me to think fast.