DXC Technology interview question

Oops concepts, string operations, string reverse program Palindrome program