Walmart interview question

around algorithms