Understanding Set Collection in Java with real life example