How do I make App Store ask for correct ID
I have a used iPhone 6, iOS 11
When I try to download an app, it asks for the password of the account of the previous owner of this phone. My Apple ID is in settings, and everywhere else, just not App Store. How do I fix this?