fn max_rectangle(heights: &[i32]) -> i32 {
    // your move
}