Your question is First Unique Element Index. 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 array of integers nums, return the index of the first element that appears exactly once. If no such element exists, return -1. The input is a Python list of integers, and the output is a single integer index.
def first_unique_index(nums):