Merge Intervals, the sort approach

https://oj.leetcode.com/problems/merge-intervals/