Eightfold Interview Question

2 Coding Questions in AI Interview - Merge Intervals based question.