/**
 * This exercise requires finding the maximum number in a list that is evenly divisible by a specific divisor using a for loop and modulus operation.
 *
 * @param numbers A list of integers
 * @param divisor The divisor to check for divisibility
 * @return The maximum number in the list that is divisible by the provided divisor
 */
fun modulusForLoopMax(numbers: List<Int>, divisor: Int): Int {

    var maxDivisible = Int.MIN_VALUE  // set an initial value lower than the minimum possible integer

    for (num in numbers) {
        if (num % divisor == 0 && num > maxDivisible) {
            maxDivisible = num
        }
    }

    return maxDivisible
}
/**
 * This exercise requires finding the maximum number in a list that is evenly divisible by a specific divisor using a for loop and modulus operation.
 *
 * @param numbers A list of integers
 * @param divisor The divisor to check for divisibility
 * @return The maximum number in the list that is divisible by the provided divisor
 */
fun modulusForLoopMax(numbers: List<Int>, divisor: Int): Int {
/**
 * This exercise requires finding the maximum number in a list that is evenly divisible by a specific divisor using a for loop and modulus operation.
 *
 * @param numbers A list of integers
 * @param divisor The divisor to check for divisibility
 * @return The maximum number in the list that is divisible by the provided divisor
 */
fun modulusForLoopMax(numbers: List<Int>, divisor: Int): Int {

    var maxDivisible = Int.MIN_VALUE  // set an initial value lower than the minimum possible integer

    for (num in numbers) {
        if (num % divisor == 0 && num > maxDivisible) {
            maxDivisible = num
        }
    }

    return maxDivisible
}