Python How To Get The Largest Possible Rectangle Contained Inside

Python How To Get The Largest Possible Rectangle Contained Inside