now we have done processing with the last array lets find out what is the maximum sum possible
int ans = 0 ; for ( int i = 0 ; i <= 6 ; i ++ ) ans = Math . max ( ans , dp [ 5 ] [ i ] ) ; return ans ; }