It is the guards at the entrance who ask you if you are leaving and give you back your stuff. Or were you trying to ask the king about something else?