Download SuperSU at https://download.chainfire.eu/supersu and copy to root of SD Card

Install TWRP Recovery and SuperSU ( Rooting )

Open ODIN software

In Option make sure to ticked F.Reset Time only and disable Auto Reboot option

In Files Download ticked AP and pointing to the location of TWRP .tar file

Turn off your Samsung Galaxy and open Download Mode or ODIN Mode: To enter Download Mode Press and hold Volume Down key + Home Key, while pressing these keys Press and hold Power key, Release all key when Download / Odin mode appears.