Pergunta de entrevista da empresa Microsoft

I was asked to write some code on paper. The question was to create a function that took in two rectangles and to return true if they overlap and false if they don't. I was then asked to flip the paper and to create 10 cases to test my code.