/**
 * Given a list of numbers, return a new list containing only the numbers from the original
 * list that are divisible by the given divisor.
 *
 * @param numbers A list of integers
 * @param divisor An integer
 * @return A list of integers
 *
 * Example:
 * calculateModulus(listOf(1, 2, 3, 4, 5, 6, 7, 8, 9), 3)
 * [3, 6, 9]
 */
fun calculateModulus(numbers: List<Int>, divisor: Int): List<Int> {

    val modulusList = mutableListOf<Int>()
    
    for (number in numbers) {
        if (number % divisor == 0) {
            modulusList.add(number)
        }
    }
    
    return modulusList
}
/**
 * Given a list of numbers, return a new list containing only the numbers from the original
 * list that are divisible by the given divisor.
 *
 * @param numbers A list of integers
 * @param divisor An integer
 * @return A list of integers
 *
 * Example:
 * calculateModulus(listOf(1, 2, 3, 4, 5, 6, 7, 8, 9), 3)
 * [3, 6, 9]
 */
fun calculateModulus(numbers: List<Int>, divisor: Int): List<Int> {
/**
 * Given a list of numbers, return a new list containing only the numbers from the original
 * list that are divisible by the given divisor.
 *
 * @param numbers A list of integers
 * @param divisor An integer
 * @return A list of integers
 *
 * Example:
 * calculateModulus(listOf(1, 2, 3, 4, 5, 6, 7, 8, 9), 3)
 * [3, 6, 9]
 */
fun calculateModulus(numbers: List<Int>, divisor: Int): List<Int> {

    val modulusList = mutableListOf<Int>()
    
    for (number in numbers) {
        if (number % divisor == 0) {
            modulusList.add(number)
        }
    }
    
    return modulusList
}