TikTok Interview Question

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