sorting the array could be useful
using a hashmap could be a way to avoid the need to sort
π€What Did I Struggle With?
~
π‘ Explanation of Solution
- initialize and populate an unordered set with all values in nums
- interate through the array, starting with an index i = 1
- check if i exists in the set, if it doesnt then push i into a results vector
- return result