Permutation Sequence

Exercise from LeetCode, it is accepted