in this question i am getting tle for the last test case
hello @Anushi_Agarwal use unordered map in place of map
ok i got it .Thanks alot