finding factorial of a number