[LC] Add solution to permutations 2.