GlobalLogic interview question

In DSA they asked about internal working of HashMap, difference b/w TreeMap and HashMap