The Lock Screen Passcode, the Restrictions Passcode, and your Apple ID Password can be very different. If it is asking you for a Passcode you should be able to use the options described at the bottom. If it is asking you for your Apple ID Password, you cannot bypass it and will need to retrieve it. Check the articles below. Also if you have proof of purchase for your device, you can go to an Apple Store, they will help you with the Apple ID PW, but only if you can prove that you are the legitimate owner.
Forgot Apple ID PW:
https://support.apple.com/en-us/HT201487
Forgot Passcode:
https://support.apple.com/en-us/HT204306
If you don't remember your Lock Screen Passcode use Recovery Mode.
https://support.apple.com/en-us/HT201412
If you don't remember the Restrictions Passcode you will need to Restore your device as New. Go through the normal process to restore your device, but when you see the option to restore as New or from a backup, be sure to choose New.
https://support.apple.com/en-us/HT201252