OpenText interview question

HashMap,treemap internal working