LeetCode
Construct the Rectangle
Click
here
for an explanation.