Here my output is according to the requirement. Still why its failing. Can anyone help please? I am already adding all the cats in the Map collection.