Adobe Interview Question

Write a programm for Two rectangles are overlapping with each other or not