if character from both string is same then we do not perform any operation . here i % 2 is for bound the row number .
else if ( str1 [ j - 1 ] == str2 [ i - 1 ] ) { DP [ i % 2 ] [ j ] = DP [ ( i - 1 ) % 2 ] [ j - 1 ] ; }