This is the most safest method to get root.without more descriptiom lets get started.

Step1. Download the file from link below(magisk)
Step2. Goto custom recovery(how to flash custom recovery CLICK HERE)
Step3. Goto backup in custom recovery
Step4. Tick boot only and swipe to backup
Step5. Go back to recovery and click install
Step6. Select the downloaded file
Step7. Swipe to flash and wait for it to complete.
Step8. Reboot your phone.(you have root) . And a app called magsik manager

Download magisk v14.0(latest)

If you get zip error you have to find the boot image for your phone and flash it before proceeding
(Note : if your phone does not boot , switch off your phone and boot to recovery and click restore and restore the boot . Switch on your phone).