How to install TWRP or root device
Follow these steps carefully (It's almost same for every android devices):


  
  Install ADB in your PC. Update the drivers of your device.
  Boot your phone into recovery mode. (Make sure you turned on USB Debugging and OEM from developer options).
  Open the ADB in your PC and check your phone is connected by USB or
  not. If it shows your phone in terminal then proceed further.
  Reboot into fastboot.
  Then unlock the bootloader (fastboot oem unlock).
  After unlocking the bootloader flash the TWRP recovery's img file (Be careful becuase TWRP recovery isn't same for every phone. You've
  to go tho their website and find your phone's. If it's not available
  in their website then don't worry you'll find it in unofficial
  websites).
  Now boot your phone into recovery mode. This will open TWRP recovery now.
  Now you should use ADB sideload method or use your phones internal or external memory to store magisk zip and flash it using TWRP.
  


You don't need to use KingoRoot to root. Magisk is an amazing tool to root any device.