Cognizant Interview Question

basics of oops, sdlc , one program to solve