Small Permutation Leetcode 460