First download samsung kies.
After that,switch off the phone.
Now hold the volume down+home button+power button.
Then when they show do you want to continue press the volume up key.
Now open samsung kies then go to tools and click on firmware upgrade and intialisation.
Then type your model name and serial number.
Now wait for it to complete.
Tadaaa it is fixed.
Click thanks if i helped you.
I am are not responsible for any damages that may happened due to using this guide.
Use this guide at your own risk. I shall not have any liability or responsibility for whatever happens to you and your device by using the instructions in this guide.
The instructions provided in this tutorial for educational purpose only. There is no guarantee that these steps will work for your device.