I\'m very much starter to python. Can I get some help for the scenario as below?
Sample input images :
Sample Rectangle 1
Sample Rectangle 2
Expected