Locked to the carrier, or locked to iCloud?
It’s not possible to find a way around iCloud’s Activation Lock, so if that’s the case, refuse the offer.
If it’s locked to a carrier, you’d have to contact the provider, to get it unlocked. That’s the only one who can do this.