solve interleaving string