why mod is changing

why we are changing the mod every time while solving vipul and modulo why m*10+(s[i]-‘0’) why m part not simply mod