Relative Sort Array Leetcode Solution