prefix to keep track of the prefix sum.res to count the number of operations performed.nums.
a. If the current number is negative, add it to the min heap.
b. Add the current number to prefix.
c. While prefix is negative and the min heap is not empty:
i. Pop the smallest negative number from the heap.
ii. Subtract this number from prefix.
iii. Increment res by 1.res as the minimum number of operations required.