Microsoft interview question

all about list.sort.unionSet