Solved Interleaving string problem with DP method