My daughter had this problem today.
Phone died, plugged in the charger, waited awhile, booted up phone, started optimizing apps, rebooted, optimizing, rebooted and so on.
The Life One X is the slowest charging phone that I have ever seen. Lollipop is notorious for optimizing apps on reboot and...