code: def index_element_map(arr):
      
      index_to_element = {}
      for index, element in enumerate(arr):
          index_to_element[index] = element
      return index_to_element
docs: Map the indices of the array to the respective elements.
  
      Parameters
      -----------
      arr : list(a)
          The array to process, of generic type a
  
      Returns
      -----------
      dict(int -> a), a dictionary corresponding the index to the element