/**
 * Given a list of integers, find the index of the first negative number.
 * Use a break statement in the loop and return -1 if no negative number is found.
 *
 * @param numbers List of integers
 * @return Index of the first negative number, -1 if no negative number is found
 */
fun findFirstNegative(numbers: List<Int>): Int {

    var index = -1

    for ((i, num) in numbers.withIndex()) {
        if (num < 0) {
            index = i
            break
        }
    }

    return index
}
/**
 * Given a list of integers, find the index of the first negative number.
 * Use a break statement in the loop and return -1 if no negative number is found.
 *
 * @param numbers List of integers
 * @return Index of the first negative number, -1 if no negative number is found
 */
fun findFirstNegative(numbers: List<Int>): Int {
/**
 * Given a list of integers, find the index of the first negative number.
 * Use a break statement in the loop and return -1 if no negative number is found.
 *
 * @param numbers List of integers
 * @return Index of the first negative number, -1 if no negative number is found
 */
fun findFirstNegative(numbers: List<Int>): Int {

    var index = -1

    for ((i, num) in numbers.withIndex()) {
        if (num < 0) {
            index = i
            break
        }
    }

    return index
}