American Express Interview Question

Code a n factorial method and then do it recursively. Also some basic OOP and DS.