Walmart interview question

DSA on Arrays and Trees