OSIsoft Interview Question

Code a recursive method for calculating factorial