Stores the dp state where dp [ i ] [ j ] represents the maximum possible score in the subarray from index i to j
static int maxMergingScore ( int A [ ] , int N ) { int [ ] [ ] dp = new int [ 101 ] [ 101 ] ; for ( int i = 0 ; i < 101 ; i ++ ) { { for ( int j = 0 ; j < 101 ; j ++ ) dp [ i ] [ j ] = 0 ; } }