LeetCode
Number Of Corner Rectangles
Click
here
for an explanation.