Function to find the maximized sum
static void maximizeSum ( int [ ] arr , int K , int n ) { int max_sum = 0 ; int start = 0 ; int end = n - 1 ; Console . Write ( maxSum ( arr , K , start , end , max_sum ) ) ; }