using System.Collections.Generic;
using System.Threading.Tasks;
static void Main(string[] args)
int num = getSum(new List<int>() { 34, -50, 42, 14, -5, 86 });
public static int getSum(List<int> list)
for(int i = 0; i < list.Count; i++)
currentSum = currentSum + list[i];
if(currentSum - list[i] > 0)