Perpule interview question

Subset in array next small palindrome binary tree