comefrom: <doocs>2200.Find All K-Distant Indices in an Array_1.py
code: def findKDistantIndices( nums: List[int], key: int, k: int) -> List[int]:
      ans = []
      n = len(nums)
      for i in range(n):
          for j in range(n):
              if abs(i - j) <= k and nums[j] == key:
                  ans.append(i)
                  break
      return ans
masked: def sample_funcname ( var_0 : List [ int ] , var_1 : int , var_2 : int ) -> List [ int ] :
      var_3 = [ ]
      var_4 = len ( var_0 )
      for var_5 in range ( var_4 ) :
          for var_6 in range ( var_4 ) :
              if abs ( var_5 - var_6 ) <= var_2 and var_0 [ var_6 ] == var_1 :
                  var_3.append ( var_5 )
                  break
      return var_3
  