Domanda di colloquio di TikTok

Given two bounding box, write a function finding the IOU area of two boxes