/**
 * This function takes in a list of numbers and a target value. It iterates through the numbers
 * using the 'forEachIndexed" function and finds the index of the first number that is equal to the target value.
 * If no match is found, it returns -1.
 *
 * @param numbers A list of numbers
 * @param target The target value to search for
 * @return The index of the first occurrence of the target value in the list, or -1 if not found
 */
fun findIntersection(numbers: List<Int>, target: Int): Int {

    numbers.forEachIndexed { index, value ->
        if (value == target) {
            return index
        }
    }
    return -1
}
/**
 * This function takes in a list of numbers and a target value. It iterates through the numbers
 * using the 'forEachIndexed" function and finds the index of the first number that is equal to the target value.
 * If no match is found, it returns -1.
 *
 * @param numbers A list of numbers
 * @param target The target value to search for
 * @return The index of the first occurrence of the target value in the list, or -1 if not found
 */
fun findIntersection(numbers: List<Int>, target: Int): Int {
/**
 * This function takes in a list of numbers and a target value. It iterates through the numbers
 * using the 'forEachIndexed" function and finds the index of the first number that is equal to the target value.
 * If no match is found, it returns -1.
 *
 * @param numbers A list of numbers
 * @param target The target value to search for
 * @return The index of the first occurrence of the target value in the list, or -1 if not found
 */
fun findIntersection(numbers: List<Int>, target: Int): Int {

    numbers.forEachIndexed { index, value ->
        if (value == target) {
            return index
        }
    }
    return -1
}