Implement min-heap with push and pop.solve(ops) runs operations: ['push', n] or ['pop'] (returns popped value or null).Returns array of pop results.
push
pop
solve(ops)
['push', n]
['pop']
Sample tests