fizz buzz, factorial and reverse string