Question d’entretien chez Optiver

Design a fast solution for this problem statement