Here is simple an elegant way to find if two given rectangles are intersecting each other and also find the intersecting rectangle if present.