Driver Code
public static void main ( String args [ ] ) { int [ ] arr = { 10 , 12 , 9 , 8 , 10 , 15 , 1 , 3 , 2 } ; int K = 3 ; int N = arr . length ; System . out . println ( maximumSum ( arr , N , K ) ) ; } }