Xoriant interview question

difference between treeset and hashset