Flipkart interview question

One question based on array and another on tree