Factorial exercise for CodeChef