a functional but ugly solution to fizzbuzz