Company: Flipkart_10Dec
Difficulty: medium
FizzBuzz Array FizzBuzz Array Problem Description Given an array A of integers. For each element in the array, print a specific string based on the following rules: If the number is divisible by both 3 and 5, print "fizzbuzz" . If the number is divisible by 3 (but not 5), print "fizz" . If the number is divisible by 5 (but not 3), print "buzz" . If the number is not divisible by either 3 or 5, print "not fizzbuzz" . Read the input from STDIN and write the output to STDOUT. The result for each number should be printed on a new line. Input Format The first line of input contains an integer n , the number of elements in the array. The next line contains n space-separated integers. Output Format Print n lines, where each line contains the result corresponding to an element in the input array. Constraints 5 <= n <= 100 3 <= arr[n] <= 1 x 10 4 Examples Example 1 Input: 4 3 5 15 19 Output: fizz buzz fizzbuzz not fizzbuzz Explanation: A[0] = 3 , which is divisible by 3, so "fizz".