TLE in CHEFSHIP using unordered_map<int , string>

I am getting TLE for the solution. Are there any optimizations possible for this solution.
https://www.codechef.com/viewsolution/33330456