Anybody , please let me know the issue here. I'm passing the value by copying the Map as it is done in remove function.