for the array [-1, -2, -3, -4] it returns 0
for the array [-1, -2, -3, -4] it returns 0