Implement solve(n) that returns a list of strings for numbers from 1 to n (inclusive) following these rules:
"FizzBuzz" if divisible by both 3 and 5"Fizz" if divisible by 3 only"Buzz" if divisible by 5 onlyRaise ValueError("n must be positive") if n < 1.
Examples
solve(5) → ["1", "2", "Fizz", "4", "Buzz"]solve(15)[-1] → "FizzBuzz"Sample tests