I need help on how to get the last index of reoccurring item

Reverse the list
Sorry, I understood something else.
Maybe this can help you: