Micron Technology interview question

Write a pseudo code to do a number factorial