l1: Top Left coordinate of first rectangle.
r1: Bottom Right coordinate of first rectangle.
l2: Top Left coordinate of second rectangle.
r2: Bottom Right coordinate of second rectangle.
1) One rectangle is above top edge of other rectangle.
2) One rectangle is on left side of left edge of other rectangle.