Pergunta de entrevista da empresa NNG

Fixing a code snippet, and c++ trivia question with math puzzle questions.