Question d’entretien chez Walmart

Code the answer to this problem