Given an integer array nums and an integer target, return the index of the first occurrence of target in nums, or -1 if it is not present. Walk the array linearly — no assumption of sortedness.
Example: nums = [1,3,5,7,9], target = 5 → 2. nums = [1,3,5,7,9], target = 4 → -1.
2