Walmart Interview Question

Solve a general programming problem.