Sum of numbers in an array


Why 1 test case is failing?