Mphasis Interview Question

Oops concept and Factorial number programming