comefrom: <garvit244>162_1.py
code: def findPeakElement( nums):
      left, right = 0, len(nums)-1
      while left < right:
          mid = (left + right) /2
          if nums[mid] > nums[mid+1]:
              right = mid
          else:
              left = mid + 1
      return left
masked: def sample_funcname ( var_0 ) :
      var_2 , var_5 = 0 , len ( var_0 ) - 1
      while var_2 < var_5 :
          var_7 = ( var_2 + var_5 ) / 2
          if var_0 [ var_7 ] > var_0 [ var_7 + 1 ] :
              var_5 = var_7
          else :
              var_2 = var_7 + 1
      return var_2
  