HashTrick Problem (Unable to Solve)

Please tell what I am doing wrong. Here’s a link to my code https://ide.codingblocks.com/s/139589