Valve Corporation interview question

Implement a function that returns the shortest distance between two rectangles.