Judge accepted my wrong solution (weak test cases)


my wrong solution got accepted. for input [1 -5], expected output is -5, but my solution gives 0. Still accepted.


Expected output should be 1.


By 1 -5, I mean to say 1 is the number of elements in array.
that means -5 is the only element in array.