Sponsored
Use these hints if you're stuck. Try solving on your own first.
The best order of the array is in decreasing order.
Sort the array in decreasing order and count the number of positive values in the prefix sum array.
Solve with full IDE support and test cases