Walmart interview question

No difficulty involved.