Pergunta de entrevista da empresa Optiver

Second question involved using a heap and writing your own comparator for it.