Given list of numbers, stop processing input after cummulative sum of all the input becomes negative

All numbers input are integers between -1000 and 1000.

Hey Pavan, share the link of your code also which you have written for this problem.

Hey Pavan, as you are not responding to this thread, I am marking your doubt as Resolved for now. Re-open it if required.
Please mark your doubts as resolved in your course’s “Ask Doubt” section, when your doubt is resolved.