Simple Input Problem

Given a list of numbers, stop processing input after the cumulative sum of all the input becomes negative.

@rishank065.
What doubt are you having in this question?