Welcome to Android Central!
Try booting into safe mode or into recovery mode and try a factory reset. How did you got into this situation?
Best regards,Mikey. For any more questions,PM me. I hope you found what you were looking for.
Sent from my Samsung Galaxy S7 Edge SM-G935F.