Driver Code
public static void Main ( String [ ] args ) { int [ ] A = { 0 , 1 , 2 , 3 , 0 , 1 , 4 } ; int [ ] B = { 9 , 8 , 1 , 2 , 3 , 4 , 5 } ; int n = A . Length ; Console . WriteLine ( returnMaxSum ( A , B , n ) ) ; } }