Company: Flipkart__..
Difficulty: medium
Array FizzBuzz Problem Description Given an array of integers A , for each element in the array, you need to print a specific string based on its divisibility. The rules are as follows: 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 print the output to STDOUT. Each result must be 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 For each of the n integers, print the corresponding string on a new line. Constraints 5 ≤ n ≤ 100 3 ≤ arr[i] ≤ 20000 Example 1 Input: 4 3 5 15 19 Output: fizz buzz fizzbuzz not fizzbuzz Explanation 1 A[0] = 3 , which is divisible by 3, so we print "fizz". A[1] = 5 , which is divisible by 5, so