Refactored FizzBuzz solution to improve readability