Coforge interview question

Method chaining in Java, Encapsulation hash map