function version of fizzbuzz