dp[i][j] = dp[i-1][j-1] +1