LTM Limited Interview Question

Palindrome code in java or c++