To be able to root, bootloader must be unlocked first. Also I am not allowed to post links.
Preparing PC:
1. Windows 10
Download necessary SDK platform tools, extract them and open the respective directory and open power shell in that directory.
2. Linux:
Install adb and fastboot packages...