Solution to fizzbuzz problem