How to fix iPhone that doesn't turn on after delete date?

I'm asking this for my mom.

She deleted all the data on her phone and restarted everything because the phone was going to be to given to my aunt who wanted it. She deleted the data and now all it does and shows the white screen with the apple icon on it and it stays on that screen until the better drains out. She plugged it into the charger and nothing happens, once it's fully charged the phone is back to that screen and restarts the process. Apple screen until no battery, charge and shows screen again. Please, my aunt really wants this phone. It's the 6+ if that helps! (No 's')

Added (1). I went online and it says you can get a code. How am I suppose to enter in a code when the phone is just showing the screen and you can't do anything about it but let the battery wasted? Should I go on Apple Live Chat? No she did not buy this phone from Amazon or anything like that.

Talk to Apple. The phone should have a warranty on it and Apple will most likely give you a replacement for free

Why don't you take it to Apple? They'll surely help you with this issue.

You need to consult the nearest Apple Store and if you need to have some great security app do install LEO Privacy Guard 3.0 in your device in order to give it utmost security.