https://tutorial.eyehunts.com/python/find-the-index-of-duplicate-elements-in-list-python-example-code/
Find the index of duplicate elements in list Python | Example code