Tree and Palindrome

SPOJ - TREEPAL