so hey nishant can u tell me than why we need another function to calculate mod multiplication
means (a * b)%m = ((a%m) * (b%m))%m then still why there is a need …plz explain with an example 
Because (a%m)*(b%m) can cause overflow in these constraints. Good explanation is given in geeksforgeeks.
4 Likes
yeah i understand now…thank you so much bro 