comefrom: <garvit244>442_1.py
code: def findDuplicates( nums):
      if not nums:
          return []
      
      result = []
      for _, num in enumerate(nums):
          index = abs(num)-1
          if nums[index] < 0:
              result.append(index+1)
          nums[index]*=-1
      return result
masked: def sample_funcname ( var_0 ) :
      if not var_0 :
          return [ ]
      var_1 = [ ]
      for var_3 , var_4 in enumerate ( var_0 ) :
          var_7 = abs ( var_4 ) - 1
          if var_0 [ var_7 ] < 0 :
              var_1.append ( var_7 + 1 )
          var_0 [ var_7 ] *= - 1
      return var_1
  