/**
 * Write a function to generate a list of numbers between start and end (inclusive),
 * excluding numbers divisible by the given step value.
 *
 * @param start The starting value of the range.
 * @param end The ending value of the range.
 * @param step The step value to exclude numbers divisible by.
 * @return A list of numbers between start and end (inclusive), excluding numbers divisible by the step.
 */
fun inclusiveExclusiveRange(start: Int, end: Int, step: Int): List<Int> {

    val result = mutableListOf<Int>()

    // Iterate through each number in the range
    for (num in start..end) {
        // Check if the number is divisible by the step
        if (num % step != 0) {
            result.add(num)
        }
    }

    return result
}
/**
 * Write a function to generate a list of numbers between start and end (inclusive),
 * excluding numbers divisible by the given step value.
 *
 * @param start The starting value of the range.
 * @param end The ending value of the range.
 * @param step The step value to exclude numbers divisible by.
 * @return A list of numbers between start and end (inclusive), excluding numbers divisible by the step.
 */
fun inclusiveExclusiveRange(start: Int, end: Int, step: Int): List<Int> {
/**
 * Write a function to generate a list of numbers between start and end (inclusive),
 * excluding numbers divisible by the given step value.
 *
 * @param start The starting value of the range.
 * @param end The ending value of the range.
 * @param step The step value to exclude numbers divisible by.
 * @return A list of numbers between start and end (inclusive), excluding numbers divisible by the step.
 */
fun inclusiveExclusiveRange(start: Int, end: Int, step: Int): List<Int> {

    val result = mutableListOf<Int>()

    // Iterate through each number in the range
    for (num in start..end) {
        // Check if the number is divisible by the step
        if (num % step != 0) {
            result.add(num)
        }
    }

    return result
}