I am not understand the question

the question intention is not clear.the question is that list.is it array?

You don’t have to use array or list just take input and print the number untill your sum is non negative.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.