Optiver Interview Question

write OOP methods using priority heap