Pergunta de entrevista da empresa Sopra Steria

Made me write logics for problems.