Relative Sort Array Leetcode Solution 21