Groupon Interview Question

String permutation