Micron Technology interview question

Program recursive factorial function.