Domanda di colloquio di Optiver

How would you write this prompt in pseudocode?