Complete the method that removes adjacent duplicates from an array list. Not all lines are useful.