Digital Dictionary Question

This is my code for the question digital dictionary:

This is the question link:
https://hack.codingblocks.com/contests/c/782/1560

Please guide me as to where am I going wrong