Sponsored
Use these hints if you're stuck. Try solving on your own first.
Could you keep track of the minimum element visited while traversing?
We have a potential candidate for the answer if the prefix min is lesser than nums[i].
Solve with full IDE support and test cases