Your best bet is to get in touch with the previous owner if possible. They should have done a factory reset before giving/selling it to you. If that's not possible then you'll need to try a hardware "factory". reset.
If there are no instructions there specifically for your tablet, try some of the methods for other tablets. One of them will probably work and you won't hurt anything by trying.