Unlock problem STL

I am not able to get the solution. please explain more clearly with the code