public int getCostSavings(int numberOfEmployees){
        int counter = 0;
        int savings=0;
        while(counter<numberOfEmployees){
            if(ratingEmployeeMap.size()>0) {
                TreeSet<Integer> treeset = (TreeSet) ratingEmployeeMap.remove(ratingEmployeeMap.firstKey()).descendingSet();
                if (treeset != null && treeset.size() > 0) {
                    for (int salary : treeset) {
                        if (counter < numberOfEmployees) {
                            savings = savings + salary;
                        } else {
                            return savings;
                        }
                        counter++;
                    }
                }
            }
            else{
                return savings;
            }
        }
        return savings;
    }