I was given a 2nd hand MacBook Pro. When I tried to boot with Command+R to get into the recovery mode I get this lock screen.
I don't know the password - is there any way to reset it?
That's the screen for a firmware password. An Apple Store or Apple Authorized Service Provider can remove it for you assuming the machine is newer than 2011 and you can prove ownership.
Other than that, there are a few low probability solutions you can try yourself:
If the machine is attached to an iCloud account, you can wipe the machine.
I think you will need to go to an Apple store with the original owner or proof of ownership.
Don’t whine about it. This is a feature that keeps stolen Mac’s from becoming a thing. With Catalina, the original user will even be able to track the location of a stolen device, even if it’s off and the battery has been removed.