/**
 * Given a list of numbers and an element, find the index of the first occurrence of the element in the list.
 *
 * @param numbers A list of integers (e.g., [1, 2, 3, 4, 5])
 * @param element An integer representing the element whose index needs to be found
 * @return The index of the first occurrence of the element in the list. If the element is not found, return -1.
 */
fun findElementIndex(numbers: List<Int>, element: Int): Int {

    var index = -1
    for (i in numbers.indices) {
        if (numbers[i] == element) {
            index = i
            break
        }
    }
    return index
}
/**
 * Given a list of numbers and an element, find the index of the first occurrence of the element in the list.
 *
 * @param numbers A list of integers (e.g., [1, 2, 3, 4, 5])
 * @param element An integer representing the element whose index needs to be found
 * @return The index of the first occurrence of the element in the list. If the element is not found, return -1.
 */
fun findElementIndex(numbers: List<Int>, element: Int): Int {
/**
 * Given a list of numbers and an element, find the index of the first occurrence of the element in the list.
 *
 * @param numbers A list of integers (e.g., [1, 2, 3, 4, 5])
 * @param element An integer representing the element whose index needs to be found
 * @return The index of the first occurrence of the element in the list. If the element is not found, return -1.
 */
fun findElementIndex(numbers: List<Int>, element: Int): Int {

    var index = -1
    for (i in numbers.indices) {
        if (numbers[i] == element) {
            index = i
            break
        }
    }
    return index
}