Unlock using hashmap


why is it giving wrong answer and time limit error?

I have edited your code a little bit… Try to submit it now…

what was wrong witg my code,even i used the same logic!

No, there was slight change…