412. FizzBuzz

Given an integer n, return a string array answer (1-indexed) where:

Example 1:
Input: n = 3
Output: ["1","2","Fizz"]

    def fizzBuzz(self, n: int) -> List[str]:
        result=[]

        for i in range(1,n+1):
            if i%3==0 and i%5==0:
                result.append("FizzBuzz")
            elif i%3==0:
                result.append("Fizz")
            elif i%5==0:
                result.append("Buzz")
            else:
                result.append(str(i))
                
        return result