/**
 * Calculate the modulus of two integers a and b.
 *
 * @param a The first integer input.
 * @param b The second integer input.
 * @return The modulus of a and b.
 */
fun modulus(a: Int, b: Int): Int {

    if (b == 0) {
        return a
    }
    return modulus(b, a % b)
}
/**
 * Calculate the modulus of two integers a and b.
 *
 * @param a The first integer input.
 * @param b The second integer input.
 * @return The modulus of a and b.
 */
fun modulus(a: Int, b: Int): Int {
/**
 * Calculate the modulus of two integers a and b.
 *
 * @param a The first integer input.
 * @param b The second integer input.
 * @return The modulus of a and b.
 */
fun modulus(a: Int, b: Int): Int {

    if (b == 0) {
        return a
    }
    return modulus(b, a % b)
}