Mike and hashtrick 2 test cases give TLE

unable to understand the problem.
please help

please reply stuck from long

@pgarg,
Try this.

that is same as i did

@pgarg,
Try submitting here.