Hello randalyne,
"Activation Lock for iPhone, iPad, and iPod touch" is a security feature, one aspect of which is deterring re-selling of stolen devices. To learn more click here --> http://support.apple.com/HT201365
An activation lock can only be removed using information for the account that applied the lock. If you know this information follow the onscreen steps to enter the Apple ID and password used to set up the device, or enter the device passcode.
If you do not know the required information and you are not the original owner, get the owner of the account to remove the lock ( How to remove Activation Lock - https://support.apple.com/HT201441 ), or return the device for a refund or recycle it. The device is otherwise useless to you.
Your friend will have to either go through the process below to recover the ID and/or password, or your friend will have to apply to Apple to have the device unlocked. If your friend cannot or will not do these, ask for your money back.
Forgotten log-in information, try to recover it:
• "If you forgot your Apple ID" [this is likely an email address you are using or used in the past] click here --> https://support.apple.com/HT201354
• "If you forgot your Apple ID password" click here --> https://support.apple.com/HT201487
Otherwise:
- Apple can remove a lock if a person can provide sufficient evidence of valid ownership. Do this online here --> https://al-support.apple.com/#/additional-support Apple says, "Proof of ownership documentation is required," but does not state what constitutes proof. In the past this has been the receipt issued by an Apple Authorized dealer with the name of the first owner and a documented chain of ownership after that (so usually it has to be the first owner who does this, or a descendant with court issued documents; I very much doubt a receipt from a flea market will do it).