Optiver interview question

How would you write this prompt in pseudocode?