Flipkart Interview Question

Write an algorithm to check if a string is a palindrome