研究笔记。
Two axis-aligned rectangles overlap when their intersection has positive area.
A magical string consists of only '1' and '2' and generates itself.