How does TreeMap work internally in Java? | Radha Publication