Add solution for 'merge intervals'.