Java Arraylist And Hashmap Complexity Ai Program That Helps