Amazon Interview Question

Make sure to cover Min Heap, Max Heap