Understanding Map Collection in Java with real life example