I check it for many hours, but I really cannot find the error.
The test that you failed is this case.
There is no overlapping. So, intersection needs to be 0. Please check your code to calculate the
inter_area in the above case. There is also a hint in a notebook.