Driver Code
public static void Main ( string [ ] args ) { int [ ] arr = { 1 , 13 , 7 , 17 } ; int [ ] S = { 1 , 3 } ; int N = arr . Length ; int K = S . Length ; Console . WriteLine ( maximumSum ( arr , S , N , K ) ) ; } }