Solved factorial of a number