Assalaamu Alaykum Warahmatullahi Wabarakatuh
In this post, you will be able to Download the Magisk patched root files for The above mentioned Mtk Samsung phones(A10s, A3 Core, A22 and A125F) which will help you root the phones and void the warranty just in case there are intended modifications to be made to the system.
Use Odin 3.13.1 to Flash these root files; Charge the phone to at least 40%, press both volume up and down and connect the USB cable to put it in Download mode, choose AP and load your root file. Flash by clicking start.
A037FXXU1AUI7
A022FXXU2AUC6
Each file is merely 32MB. Flash and then install magisk app after restarting the phone. Thanks