Cognizant interview question

Oops concept, arrays, modifiers, reverse a string program