Nuvalence interview question

Write a program that will determine if one rectangle is contained within, adjacent to, or disjoint from another rectangle.