/**
 * This function takes in three arguments: start, end, and divisor.
 * It finds all the odd numbers within the range from start to end
 * using a looping statement and checks if each number is divisible
 * by the given divisor using the modulus operator (%).
 *
 * @param start The starting point of the range (inclusive).
 * @param end The ending point of the range (exclusive).
 * @param divisor The divisor to check if a number is divisible by.
 * @return A list containing all the odd numbers within the range that are
 *         divisible by the given divisor.
 */
fun findOddNumbers(start: Int, end: Int, divisor: Int): List<Int> {

    val oddNumbers = mutableListOf<Int>()

    for (num in start until end) {
        if (num % 2 != 0 && num % divisor == 0) {
            oddNumbers.add(num)
        }
    }

    return oddNumbers
}
/**
 * This function takes in three arguments: start, end, and divisor.
 * It finds all the odd numbers within the range from start to end
 * using a looping statement and checks if each number is divisible
 * by the given divisor using the modulus operator (%).
 *
 * @param start The starting point of the range (inclusive).
 * @param end The ending point of the range (exclusive).
 * @param divisor The divisor to check if a number is divisible by.
 * @return A list containing all the odd numbers within the range that are
 *         divisible by the given divisor.
 */
fun findOddNumbers(start: Int, end: Int, divisor: Int): List<Int> {
/**
 * This function takes in three arguments: start, end, and divisor.
 * It finds all the odd numbers within the range from start to end
 * using a looping statement and checks if each number is divisible
 * by the given divisor using the modulus operator (%).
 *
 * @param start The starting point of the range (inclusive).
 * @param end The ending point of the range (exclusive).
 * @param divisor The divisor to check if a number is divisible by.
 * @return A list containing all the odd numbers within the range that are
 *         divisible by the given divisor.
 */
fun findOddNumbers(start: Int, end: Int, divisor: Int): List<Int> {

    val oddNumbers = mutableListOf<Int>()

    for (num in start until end) {
        if (num % 2 != 0 && num % divisor == 0) {
            oddNumbers.add(num)
        }
    }

    return oddNumbers
}