Return, for the 1-D array x, the index (into x) of the first occurrence of each unique value, ordered by ascending value.
x
solve(...)