I have two strings which I need to compare and permute. What is the best way of doing this?
Given a string "asdfpoit" what is the best way to rerrange it to match another string "poitasdf"?
I know this can be done using nested for loops... but is there a better/faster way of doing this?