Yelp interview question

the intersection of two range