Driver code
public static void Main ( string [ ] args ) { int [ ] arr = { 11 , - 5 , 9 , - 3 , 2 } ; int N = arr . Length ; ArrayList pair = new ArrayList ( ) ; pair = largestSumpair ( arr , N ) ; foreach ( int it in pair ) { Console . Write ( it + " ▁ " ) ; } } }