code: def max_area(height):
      l = 0
      r = len(height) - 1
      max_height = 0
  
      while l < r:
          left = height[l]
          right = height[r]
  
          current_height = min(left, right) * (r - l)
          max_height = max(max_height, current_height)
  
          # take the smaller side and search for a bigger height on that side
          if left < right:
              while (l < r) and (left >= height[l]):
                  l += 1
          else:
              while (l < r) and (right >= height[r]):
                  r -= 1
  
      return max_height
  
label_desc: Use image node_id 1 for calling a global function with example usage: max_area(height) and returns: max_height