Unlock problem of hashmap section

getting wrong answer

please check my code
where is the mistake

@sk3657860 Your latest submission is showing that you have solved it completely. I think you have solved. If there are still some doubts in the problem then feel free to ask.

Otherwise please mark this doubt as resolved.

yes sir i have solve that , but i am trying slightly differently . but getting wrong answer

@sk3657860 please explain a little what exactly you are trying to do in this approach.

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.