Question d’entretien chez Walmart

Solve a general programming problem.