is this piece of code takes a lot of memory space because of using new keyword multiple times? private static LinkedList removeDuplicates(LinkedList linkedList) { re