Amazon Interview Question

Convert a tree into minheap ??