In test case 1 and 2

can you tell me in put for which I am getting wrong answer

This is a simple question on basic mathematics. Instead of looking for test cases where your code failed. I would recommend you to check your code and submit again.
You just have to take sum of all inputs until your sum becomes negative. As it becomes negative just return 0.