115. Index of First Occurrence of Each Unique Value

Easy

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

Implement solve(...)