/**
 * Given a list of numbers and a divisor, calculate the modulus of each number with the divisor.
 */
fun calculateModulus(numbers: List<Int>, divisor: Int): List<Int> {

    val modResults = mutableListOf<Int>()
    for (num in numbers) {
        modResults.add(num % divisor)
    }
    return modResults
}
/**
 * Given a list of numbers and a divisor, calculate the modulus of each number with the divisor.
 */
fun calculateModulus(numbers: List<Int>, divisor: Int): List<Int> {
/**
 * Given a list of numbers and a divisor, calculate the modulus of each number with the divisor.
 */
fun calculateModulus(numbers: List<Int>, divisor: Int): List<Int> {

    val modResults = mutableListOf<Int>()
    for (num in numbers) {
        modResults.add(num % divisor)
    }
    return modResults
}