Uber interview question

How to construct a heap tree