attached segment font-content"><div style="position: relative; overflow: hidden;"><div style="margin: 0cm 0cm 12pt" align="left"><span style="font-size: medium"><br />
Consider <i>n</i> distinct points on a plane.<br />
<br />
Two points from that set are said to be <i>friends</i>, when there exists a rectangle with sides parallel to coordinate axes that contains those two points and doesn't contain any other point from the given set. A rectangle is said to <i>contain</i> a point if the point lies within