Given a list[ [s,e],[s1,e2],[s2,e2]]. Return the frequency of intervals
[[0,3],[1,4],[2,7]]
[0,1]->1 [1-2]-> 2 [2-3]-> 3 [3-4]-> 2 [4-7]->1