Pergunta de entrevista da empresa Nitro

Write a command-line application that calculates intersections between different rectangles.