Function modpow

Source
pub fn modpow(base: i64, exp: i64, n: i64) -> i64