Relative Sort Array Leetcode Solution 19