comefrom: <doocs>0922.Sort Array By Parity II_1.py
code: def sortArrayByParityII( nums: List[int]) -> List[int]:
      n, j = len(nums), 1
      for i in range(0, n, 2):
          if (nums[i] & 1) == 1:
              while (nums[j] & 1) == 1:
                  j += 2
              nums[i], nums[j] = nums[j], nums[i]
      return nums
masked: def sample_funcname ( var_0 : List [ int ] ) -> List [ int ] :
      var_1 , var_2 = len ( var_0 ) , 1
      for var_3 in range ( 0 , var_1 , 2 ) :
          if ( var_0 [ var_3 ] & 1 ) == 1 :
              while ( var_0 [ var_2 ] & 1 ) == 1 :
                  var_2 += 2
              var_0 [ var_3 ] , var_0 [ var_2 ] = var_0 [ var_2 ] , var_0 [ var_3 ]
      return var_0
  