EY Interview Question

Diff b/w set and TreeSet