I need to rework this code again. The code works in finding a number at the index point. What I didn't account for is multiple accounts of the same number.
So if my numbers were 10 22 16 13 22 19, and my target number is 22 it would say the last occurrence of 22 is at index 1, and it should be index 4.