isPalindrome_using_both_stack_and_que