lastStoneWeight = function (stones) {
    const maxHeap = getMaxHeap(stones)

    shrink(maxHeap)

    return !maxHeap.isEmpty()
        ? maxHeap.front().element
        : 0
}
https://leetcode.com/problems/last-stone-weight/
Time O(N * log(N)) | Space O(N)
@param {number[]} stones
@return {number}