added overlapping rectangles solution in python 3 and C++