Given a collection of distinct numbers, return all possible permutations.
For example,
[1,2,3]have the following permutations:
[ [1,2,3], [1,3,2], [2,1,3], [2,3,1], [3,1,2], [3,2,1] ]
backtracking ?子串長度夠了就加到返回list 里, 始終從0開始掃描, 如果子串里含有當前數字, 則繼續,不遞歸, 否則將當前值加入到子串中,遞歸,回溯。