Amazon interview question

Implementing a min heap and its operations