Pregunta de entrevista de Skillsoft

Write some pseudocode that detects the intersection of lines between two rectangles.