Question d’entretien chez NIKE

Solve this coding problem in 20 minutes