please find the mistake
Review my code and hint solution
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