Driver code
static void Main ( ) { List < int > A = new List < int > ( new int [ ] { 2 , - 1 , 4 , - 5 } ) ; List < int > B = new List < int > ( new int [ ] { 4 , - 3 , 12 , 4 , - 3 } ) ; Console . WriteLine ( maxPresum ( A , B ) ) ; } }