Refactored code for Fizz Buzz using arrays

[#59020952]