TikTok interview question

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