/**
 * Given an array of numbers, find the first positive odd number starting from a given index.
 *
 * @param numbers A list of integers.
 * @param startIndex The index from where to start the search.
 * @return The first positive odd number found, or -1 if none found.
 */
fun findFirstOddPositive(numbers: List<Int>, startIndex: Int): Int {

    var result = -1
    
    for (i in startIndex until numbers.size) {
        val num = numbers[i]
        
        if (num > 0 && num % 2 != 0) {
            result = num
            break
        }
    }
    
    return result
}
/**
 * Given an array of numbers, find the first positive odd number starting from a given index.
 *
 * @param numbers A list of integers.
 * @param startIndex The index from where to start the search.
 * @return The first positive odd number found, or -1 if none found.
 */
fun findFirstOddPositive(numbers: List<Int>, startIndex: Int): Int {
/**
 * Given an array of numbers, find the first positive odd number starting from a given index.
 *
 * @param numbers A list of integers.
 * @param startIndex The index from where to start the search.
 * @return The first positive odd number found, or -1 if none found.
 */
fun findFirstOddPositive(numbers: List<Int>, startIndex: Int): Int {

    var result = -1
    
    for (i in startIndex until numbers.size) {
        val num = numbers[i]
        
        if (num > 0 && num % 2 != 0) {
            result = num
            break
        }
    }
    
    return result
}