Find a factorial of input number