FizzBuzz algorithm study