Practice: modulus functions

Question

Answer