LeetCode
Perfect Rectangle
Click
here
for an explanation.