Walmart Global Tech interview question

Array, tree based questions and recursion.