Pergunta de entrevista da empresa Valve Corporation

Calculate distance between two axis-aligned rectangles