No password to log out of find my iphone, no i cloud setting options
Your friend needs to pick the easiest of these to accomplish as your friend:


Provide proof they were the first purchaser to Apple and get it unlocked. (Or let you know who purchased it originally). When I’ve done this it’s with my business card showing I am and IT Manager for the company matching the purchase order. When I’ve seen this done personally, they looked up the receipt or people provide a copy of the receipt and a drivers license matching the name on the receipt in person at the store.
Recover access to the account with the forgotten password https://iforgot.apple.com .
Apologize for giving you a locked phone.
Encourage you to learn how to open and desolder and break the encryption chain after you consider if educational and research is justified and it’s not theft or breaking into someone else’s property. 


All of these seem super helpful for moving you forward.