Walmart interview question

Data structure and algorithm