Your question is Remove Duplicates from Unsorted Array. Start with the requirements on the right.
Run and submit as often as you like. When you're ready, talk me through your approach or go straight to the code.
Given an unsorted array of integers nums, return a new array containing only the first occurrence of each value in the order they appear. Do not modify the input array in place unless needed for your approach.