Walmart interview question

No hard problem