Pergunta de entrevista da empresa JPMorganChase

Consider a series of integer ranges (lowerbound, upper bound). Count the integers in a given array that lie within all ranges inclusive.