Solution to the infamous FizzBuzz problem