Completed negativeSum