Company: Flipkart_10Dec
Difficulty: medium
FizzBuzz Array FizzBuzz Array Problem Description You're given an array A of integers. For every element, print one label chosen by these 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 array from STDIN and write your results to STDOUT, printing one label per line in the same order as the input. 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 divides evenly by 3 (not 5), giving "fizz". A[1] = 5 div