Driver code
public static void Main ( String [ ] args ) { String s = " abcddcba " ; int n = s . Length ; int [ , ] dp = new int [ N , N ] ; for ( int i = 0 ; i < N ; i ++ ) { for ( int j = 0 ; j < N ; j ++ ) { dp [ i , j ] = - 1 ; } } Console . WriteLine ( findMinimumDeletion ( 0 , n - 1 , dp , s ) ) ; } }