Groupon interview question

String permutation