Amazon Interview Question

give an ordered list from a minheap like tree