Implement `heapExtractMin(arr)` returning `[min, newHeap]`: the root, and the heap after moving the last element to the root and sifting it down. For an empty heap return `[null, []]`.
+ 1 hidden test run on Submit.
Swapping the last element to the root and sifting down restores the heap in O(log n).
Run your code to see results.