after complete fill the DP array if the len2 is even then we end up in the 0 th row else we end up in the 1 th row so we take len2 % 2 to get row
document . write ( DP [ len2 % 2 ] [ len1 ] + " " ) ; }