Cognizant interview question

1. Write the code for reversing a string. 2. Write the code for checking palindrome. 3. Multiple questions on the OOPS concept. 4. Coding language question (In my case - Java)