78: Fizz buzz
Given an integer value, return a string representation of numbers from 1 to value
Rules:
- for multiples of
3returnFizz- for multiples of
5returnBuzz- for multiples of
3and5returnFizzBuzz- otherwise, return
number
Example 1
Input: 3
Output: ["1" , "2", "Fizz"]
Example 2
Input: 5
Output: ["1" , "2", "Fizz", "4" , "Buzz"]