Case when all elements are negative

i am not able to handle the case when all elements of array are negative. could you please help me out?

@kairavi.bajaj make two changes to the code, intialize max_sum_so_far = INT_MIN, do the updation of max_sum_so_far before the if condition instead of after the if condition.
If this resolves your doubt mark it resolved.