Sounds like someone tried rooting device,probably with Kingroot, and did not disable FRP in Settings -Security.
Only way I know to try to fix it, is to reflash the stock firmware.
If you bought the device new and was in this state when you took it out of the box, I would return it to the place you purchased it.