Pregunta de entrevista de USAA

Write a function (in whichever coding language you prefer) that will take in an integer and return its factorial.