Infosys Interview Question

Find factorial of a number and write code.