1 test case giving TLE

my code is : https://ide.codingblocks.com/s/287006
same as per the algo using map giving TLE

Your submission shows that all your test cases were passed.
So mark the doubt as resolved if it is so.

yes it got passed, it was a minor mistake., okay.