1. Write a “fizzBuzz” method that accepts a number as input and returns it as a String.

  2. For multiples of three return “Fizz” instead of the number

  3. For the multiples of five return “Buzz”

  4. For numbers that are multiples of both three and five return “FizzBuzz”.

Test cases:

  1. On input as 3, it should return Fizz
  2. On input as 5, it should return Buzz
  3. On invalid input, should throw exception
  4. On 9, it should return Fizz
  5. On 25, it should return Buzz
  6. On 15, it should return FizzBuzz