Microsoft Interview Question

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