Appian interview question

DSA questions on LinkedList, HeapSort and a problem using Set.