Might be a good idea to ask the person who was so kind to give it to you for free Remchisel.
But i suspect what your talking about here is the bios lock, and boot password.
Now at a guess the laptop must be quiet hot to touch, even if it`s turned off. Hint.
When you have to ask a question like the one you have, 99.9% of the time, its Hot.
You see it is put there to put it bluntly if by chance it gets stolen by some light fingered slime ball, who then asks how to unlock it.
The answer is by asking the person who it was likely stolen from.