You need your friend to remove the device from their Google account. Either they can unlock the tablet and go to "Accounts" and remove the Google account, or they can go to their Google account using any web browser on any computer or phone or another tablet and remove that Samsung from their account. Unfortunately, it's an expensive paperweight for you as you cannot use the tablet without your friend removing it from their Google account. (The only other option is for you to get access to their Google account and do either of the options listed here)

Talk Doctor Online in Bissoy App