Improve iterative string shuffle solution, and solve recursively.