Array list and testing done except for remove duplicates