Review my code and hint solution

please find the mistake

please share your code in CB ide

please notice the o/p format
u need to print the number that is being sent as input stop when cumulative sum becomes less than 0
please see the code below and u`ll understand the points where ur code is buggy