/**
 * Generate a list of odd numbers within the given range using XOR operator.
 * @param start The starting point of the range (inclusive).
 * @param stop The ending point of the range (exclusive).
 * @return A list of odd numbers within the range.
 */
fun generateOddNumbers(start: Int, stop: Int): List<Int> {

    val result = mutableListOf<Int>()
    for (num in start until stop) {
        // Using XOR operator to check if the number is odd
        if (num xor 1 == num + 1) {
            result.add(num)
        }
    }
    return result
}
/**
 * Generate a list of odd numbers within the given range using XOR operator.
 * @param start The starting point of the range (inclusive).
 * @param stop The ending point of the range (exclusive).
 * @return A list of odd numbers within the range.
 */
fun generateOddNumbers(start: Int, stop: Int): List<Int> {
/**
 * Generate a list of odd numbers within the given range using XOR operator.
 * @param start The starting point of the range (inclusive).
 * @param stop The ending point of the range (exclusive).
 * @return A list of odd numbers within the range.
 */
fun generateOddNumbers(start: Int, stop: Int): List<Int> {

    val result = mutableListOf<Int>()
    for (num in start until stop) {
        // Using XOR operator to check if the number is odd
        if (num xor 1 == num + 1) {
            result.add(num)
        }
    }
    return result
}