OSIsoft interview question

Code a recursive method for calculating factorial