Pregunta de entrevista de Valve Corporation

Calculate distance between two axis-aligned rectangles