Cisco Interview Question

How do min-heap and max-heap work?