class Solution {
public:
    vector<string> Permutation(string str)
    {
        vector<string> vans;
        sort(str.begin(), str.end()); 
        do{
            vans.emplace_back(str);
        }while(next_permutation(str.begin(), str.end()));
        return vans;
    }

};