/**
 * Create a list of numbers divisible by a given divisor
 */
fun createDivisionList(n: Int, divisor: Int): List<Int> {

    // Initialize an empty list
    val divisibleList = mutableListOf<Int>()

    // Iterate through numbers from 1 to n
    for (num in 1..n) {
        // Check if the number is divisible by the given divisor
        if (num % divisor == 0) {
            // Append the number to the divisibleList
            divisibleList.add(num)
        }
    }

    // Return the final divisibleList
    return divisibleList
}
/**
 * Create a list of numbers divisible by a given divisor
 */
fun createDivisionList(n: Int, divisor: Int): List<Int> {
/**
 * Create a list of numbers divisible by a given divisor
 */
fun createDivisionList(n: Int, divisor: Int): List<Int> {

    // Initialize an empty list
    val divisibleList = mutableListOf<Int>()

    // Iterate through numbers from 1 to n
    for (num in 1..n) {
        // Check if the number is divisible by the given divisor
        if (num % divisor == 0) {
            // Append the number to the divisibleList
            divisibleList.add(num)
        }
    }

    // Return the final divisibleList
    return divisibleList
}