For this Question: Given an array of integers, The task is to find the index of the first repeating element in it i. e. the element that occurs more than once and whose index of the first occurrence is the smallest.A list of integersA single integerInput: 

arr[] = 10 5 3 4 3 5 6

Output: 5 

Explanation: 5 is the first element that repeats, although 3 also gets repeated but 5 comes before 3 in the list., I have written this Solution Code: def printFirstRepeating(arr, n):
	Min = -1
	myset = dict()
	for i in range(n - 1, -1, -1):
		if arr[i] in myset.keys():
			Min = i

		else: 
			myset[arr[i]] = 1

	if (Min != -1):
		print(arr[Min])
	else:
		print("not found")


arr = [int(item) for item in input("").split()]
n = len(arr)
printFirstRepeating(arr, n)
, In this Programming Language: Python, Now tell me if this Code is compilable or not?