Merge overlapping intervals in an int[][].
Type it from memory — say each line out loud as you write it. Then check.