Veritone interview question

Merge objects from a list that are same type and their time segment overlaps.