Yelp interview question

Permutation of a string.(Common question)