Lucid Imaging Interview Question

They mainly asked me to solve a DSA problem based on Merge Intervals.