Pergunta de entrevista da empresa Dealer.com by Cox Automotive

Palindrome question, n-ary tree question