Booz Allen Hamilton Interview Question

A simple programming question. How would you solve factorial of a number using any programming language. No coding. More like explain your thought process to solve the problem.