Problem link : https://onlinejudge.org/index.php?option=onlinejudge&page=show_problem&problem=3648 This is a Dynamic programming problem.but what should be the approach to solve it. If i do operation only in string x should I think about delete operation because string x is always x<=y.