container Container that holds numeric values and answers basic range queries Solution 1 : This solution uses java TreeMap data structure to solve the problem Solution 2 : This solution uses balanced binary tree implementation to solve the problem