Walmart Interview Question

around algorithms