Returns sum of maximum sum subarray created after concatenating a [ 0. . n - 1 ] k times .
static int maxSubArraySumRepeated ( int a [ ] , int n , int k ) { int max_so_far = 0 ; int INT_MIN , max_ending_here = 0 ; for ( int i = 0 ; i < n * k ; i ++ ) {