Question d’entretien chez Optiver

How would you write this prompt in pseudocode?