EY interview question

Diff b/w set and TreeSet