CASTLE GLOBAL interview question

merge interval, find peak element...