/**
 * This function searches for a person's name in a list of people and returns the index of the person if found.
 * If the person is not found, it returns -1.
 *
 * @param people A list of names.
 * @param name The name to search for.
 * @return The index of the person in the list if found, -1 otherwise.
 */
fun searchForPerson(people: List<String>, name: String): Int {

    var index = -1
    // Iterate over the list of people
    for ((i, person) in people.withIndex()) {
        // Check if the current person is the one we are looking for
        if (person == name) {
            index = i
            break
        }
    }
    return index
}
/**
 * This function searches for a person's name in a list of people and returns the index of the person if found.
 * If the person is not found, it returns -1.
 *
 * @param people A list of names.
 * @param name The name to search for.
 * @return The index of the person in the list if found, -1 otherwise.
 */
fun searchForPerson(people: List<String>, name: String): Int {
/**
 * This function searches for a person's name in a list of people and returns the index of the person if found.
 * If the person is not found, it returns -1.
 *
 * @param people A list of names.
 * @param name The name to search for.
 * @return The index of the person in the list if found, -1 otherwise.
 */
fun searchForPerson(people: List<String>, name: String): Int {

    var index = -1
    // Iterate over the list of people
    for ((i, person) in people.withIndex()) {
        // Check if the current person is the one we are looking for
        if (person == name) {
            index = i
            break
        }
    }
    return index
}