Modular exponentation

please check the error in the code

@Ambuj-Singh-514796906079795 corrected and commented


dont forget to hit like and mark resolved if cleared :smiley: