Cognizant Interview Question

prime no program,factorial program, oops concept,mini project code