Probloem in question number 4 xometry (easy version)

Describe your issue

    Actually starters 153 question number 4 gives tle, although my code is logically same with accepted codes

Screenshot

Additional info

The problem is that you used unordered map, which is not O(1).