Palindrome using data structure