Algorithm For Binary Search Tree Program In Python For Palindrome