Network 18 interview question

Write code for BFS traversal. Write code for Max Heap.