You must enter the correct password for the Apple ID that is associated with the device. If you do not have the correct password and the Apple ID is not yours, then the device sounds like it has the iCloud Activation Lock enabled on it. And you cannot bypass that.
If you DO have the correct Apple ID and password, then you can go to Settings > iCloud and sign out.