Frage im Vorstellungsgespräch bei Tata Consultancy Services

Basic java question like tree and palindrome