scramble string Python accepted

sort() use too much time