Solutions for Max Heap Checker