WRONG ANSWER (Need to find the mistake)

code is running fine but doesn’t know what I am missing so that it’s not getting submitted.

question: https://www.hackerrank.com/challenges/frequency-queries/problem?h_l=interview&isFullScreen=false&playlist_slugs[][][][]=interview-preparation-kit&playlist_slugs[][][][]=dictionaries-hashmaps

solution: https://ide.codingblocks.com/s/347175

Hey @pks101295, this is the pseudo code


It will help you for sure :slight_smile:

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.