Pergunta de entrevista da empresa Leanplum

A question about an array of ranges and how to binary search it.