Question d’entretien chez RELEX Solutions

Solve a simple algorithm question, and explain your steps.