Two Sigma interview question

string permutations