/**
 * This function finds all the odd numbers within a given range.
 *
 * @param start an integer representing the starting point of the range (inclusive)
 * @param end an integer representing the ending point of the range (exclusive)
 * @return a list of odd numbers within the given range
 *
 * Example:
 * findOddNumbers(1, 10) -> [1, 3, 5, 7, 9]
 */
fun findOddNumbers(start: Int, end: Int): List<Int> {

    val oddNumbers = mutableListOf<Int>()

    // Iterate over the range from start to end
    for (number in start until end) {
        // Check if the number is not divisible by 2 (i.e., odd)
        if (number % 2 != 0) {
            oddNumbers.add(number)
        }
    }

    return oddNumbers
}
/**
 * This function finds all the odd numbers within a given range.
 *
 * @param start an integer representing the starting point of the range (inclusive)
 * @param end an integer representing the ending point of the range (exclusive)
 * @return a list of odd numbers within the given range
 *
 * Example:
 * findOddNumbers(1, 10) -> [1, 3, 5, 7, 9]
 */
fun findOddNumbers(start: Int, end: Int): List<Int> {
/**
 * This function finds all the odd numbers within a given range.
 *
 * @param start an integer representing the starting point of the range (inclusive)
 * @param end an integer representing the ending point of the range (exclusive)
 * @return a list of odd numbers within the given range
 *
 * Example:
 * findOddNumbers(1, 10) -> [1, 3, 5, 7, 9]
 */
fun findOddNumbers(start: Int, end: Int): List<Int> {

    val oddNumbers = mutableListOf<Int>()

    // Iterate over the range from start to end
    for (number in start until end) {
        // Check if the number is not divisible by 2 (i.e., odd)
        if (number % 2 != 0) {
            oddNumbers.add(number)
        }
    }

    return oddNumbers
}