Welcome to Android Central! Usually, a normal reboot will get you out of Safe Mode. That doesn't work?
If it keeps booting into Safe Mode, it's possible the phone was modified or tampered with. Was it listed as brand new, sold through Amazon? Or was it refurbished/used, or sold through an independent seller via Amazon?