def max_rectangle(heights: list[int]) -> int:
    # your move 