think-cell interview question

Programming task. Writing solution for interval map.