Cognizant interview question

Oops concepts, query, program coding, resverse string