J.P. Morgan interview question

Merge the intervals and Count binary strings