FizzBuzz solution in C++