Optiver Interview Question

How would you write this prompt in pseudocode?