Pergunta de entrevista da empresa EY

Diff b/w set and TreeSet