Use this image to answer the question.

What should you do if you forgot your passcode and your iPhone is disabled?
Use this image to answer the question.
What should you do if you forgot your passcode and your iPhone is disabled?
Answer A is correct for any iPhone under iOS version 15.1 or earlier. However, if your iPhone is running iOS 15.2 or later you can use the "Forgot Passcode? option. You'll have two options once you do this: 1. Use your previous passcode (if you recently changed it) 2. Or, fully wipe/erase the phone by authenticating your Apple ID account. https://support.apple.com/en-us/105090
To add, you can ONLY use your previous password if you had recently changed it (within 72 hours)