Microsoft interview question

Implement a function that returns a boolean of whether two rectangles overlap.