refactored fizzbuzz.rb to use ternary operator