Qualtrics interview question

isPalindrome recursion n-ary trees