If possible, try reaching out to the previous owner and ask them to sign out of the device or provide you with the necessary login credentials to unlock it.
you may need to perform a factory reset on the laptop. This will erase all data on the device and restore it to its original factory settings, allowing you to set it up as a new user.
The manufacturer's website or forums might have specific instructions for resetting the device.