comefrom: <doocs>1409.Queries on a Permutation With Key_1.py
code: def processQueries( queries: List[int], m: int) -> List[int]:
      p = list(range(1, m + 1))
      ans = []
      for v in queries:
          j = p.index(v)
          ans.append(j)
          p.pop(j)
          p.insert(0, v)
      return ans
masked: def sample_funcname ( var_0 : List [ int ] , var_1 : int ) -> List [ int ] :
      var_2 = list ( range ( 1 , var_1 + 1 ) )
      var_3 = [ ]
      for var_4 in var_0 :
          var_5 = var_2.index ( var_4 )
          var_3.append ( var_5 )
          var_2.pop ( var_5 )
          var_2.insert ( 0 , var_4 )
      return var_3
  