Pregunta de entrevista de Dealer.com by Cox Automotive

Palindrome question, n-ary tree question