/**
 * Geologist's Code Completion Exercise:
 *
 * Given a range of integers from rangeStart to rangeEnd (inclusive), this function finds all the elements
 * in the range that are divisible by the provided divisor and returns a list containing them.
 *
 * @param rangeStart The starting value of the range.
 * @param rangeEnd The ending value of the range.
 * @param divisor The divisor to check divisibility against.
 * @return A list of integers in the range that are divisible by the divisor.
 *
 * Example:
 * Input: divisionOfElementsInRange(10, 25, 5)
 * Output: [10, 15, 20, 25]
 *
 * Note:
 * Divisibility here refers to exact division without any remainder.
 */
fun divisionOfElementsInRange(rangeStart: Int, rangeEnd: Int, divisor: Int): List<Int> {

    val divisibleNumbers = mutableListOf<Int>()
    for (num in rangeStart..rangeEnd) {
        if (num % divisor == 0) {
            divisibleNumbers.add(num)
        }
    }
    return divisibleNumbers
}
/**
 * Geologist's Code Completion Exercise:
 *
 * Given a range of integers from rangeStart to rangeEnd (inclusive), this function finds all the elements
 * in the range that are divisible by the provided divisor and returns a list containing them.
 *
 * @param rangeStart The starting value of the range.
 * @param rangeEnd The ending value of the range.
 * @param divisor The divisor to check divisibility against.
 * @return A list of integers in the range that are divisible by the divisor.
 *
 * Example:
 * Input: divisionOfElementsInRange(10, 25, 5)
 * Output: [10, 15, 20, 25]
 *
 * Note:
 * Divisibility here refers to exact division without any remainder.
 */
fun divisionOfElementsInRange(rangeStart: Int, rangeEnd: Int, divisor: Int): List<Int> {
/**
 * Geologist's Code Completion Exercise:
 *
 * Given a range of integers from rangeStart to rangeEnd (inclusive), this function finds all the elements
 * in the range that are divisible by the provided divisor and returns a list containing them.
 *
 * @param rangeStart The starting value of the range.
 * @param rangeEnd The ending value of the range.
 * @param divisor The divisor to check divisibility against.
 * @return A list of integers in the range that are divisible by the divisor.
 *
 * Example:
 * Input: divisionOfElementsInRange(10, 25, 5)
 * Output: [10, 15, 20, 25]
 *
 * Note:
 * Divisibility here refers to exact division without any remainder.
 */
fun divisionOfElementsInRange(rangeStart: Int, rangeEnd: Int, divisor: Int): List<Int> {

    val divisibleNumbers = mutableListOf<Int>()
    for (num in rangeStart..rangeEnd) {
        if (num % divisor == 0) {
            divisibleNumbers.add(num)
        }
    }
    return divisibleNumbers
}