TCS interview question

1. Oops concept 2. Reverse a string code 3. Pallindrome code