ByteDance interview question

Minimum Area Rectangle on leet code