/**
 @author Farheen Bano
  
 Reference-
 https://leetcode.com/problems/fizz-buzz/
*/

import java.util.*;
import java.lang.*;
import java.io.*;

class Solution {
    public List<String> fizzBuzz(int n) {
        List<String> result=new ArrayList<>();
        for(int i=1;i<=n;i++){
            if(i%15==0){
                result.add("FizzBuzz");
            }
            else if(i%3==0){
                result.add("Fizz");
            }
            else if(i%5==0){
                result.add("Buzz");
            }
            else{
                result.add(i+"");
            }
            
        }
        return result;
    }
}
