Microsoft Interview Question

How to work with min max heaps