Scramble String

Exercise from LeetCode, it is accepted