Goldman Sachs interview question

Calculate minimum and maximum area.