3000. Maximum Area of Longest Diagonal Rectangle You are given a 2D 0-indexed integer array dimensions. For all…