NNG Interview Question

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