for loop {
    initialize new hashmap 
    for loop {
        if (hashmap.containsKey(i)
             map.put(something)
    }
}
basically 2 nested for loops with a containsKey function inside it.
im thinking its O(n^2) because of the nested loops but it could also be O(n^3) because of the containsKey function. could someone help me out here?