using System.Collections.Generic;
public static void Main()
int num = getSum(new List<int>() { 15, 16, -66, 17, 18 });
public static int getSum(List<int> list)
for(int i = 0; i < list.Count; i++)
currentSum = currentSum + list[i];
if(currentSum - list[i] > 0)