Kamal interview question

Merge intervals add two linkedlists