/**
 * Given a list of social worker names and their respective ages, find and return the name
 * of the youngest social worker.
 *
 * @param nameList A list of strings representing the names of social workers.
 * @param ageList A list of integers representing the ages of social workers.
 * @return The name of the youngest social worker.
 */
fun findSocialWorker(nameList: List<String>, ageList: List<Int>): String {

    // Initialize the name of the youngest social worker
    var youngestSocialWorker = ""

    // Find the index of the youngest social worker
    var minAgeIndex: Int? = null
    for (i in ageList.indices) {
        if (minAgeIndex == null || ageList[i] < ageList[minAgeIndex!!]) {
            minAgeIndex = i
        }
    }

    // Return the name of the youngest social worker
    if (minAgeIndex != null) {
        youngestSocialWorker = nameList[minAgeIndex]
    }

    return youngestSocialWorker
}
/**
 * Given a list of social worker names and their respective ages, find and return the name
 * of the youngest social worker.
 *
 * @param nameList A list of strings representing the names of social workers.
 * @param ageList A list of integers representing the ages of social workers.
 * @return The name of the youngest social worker.
 */
fun findSocialWorker(nameList: List<String>, ageList: List<Int>): String {
/**
 * Given a list of social worker names and their respective ages, find and return the name
 * of the youngest social worker.
 *
 * @param nameList A list of strings representing the names of social workers.
 * @param ageList A list of integers representing the ages of social workers.
 * @return The name of the youngest social worker.
 */
fun findSocialWorker(nameList: List<String>, ageList: List<Int>): String {

    // Initialize the name of the youngest social worker
    var youngestSocialWorker = ""

    // Find the index of the youngest social worker
    var minAgeIndex: Int? = null
    for (i in ageList.indices) {
        if (minAgeIndex == null || ageList[i] < ageList[minAgeIndex!!]) {
            minAgeIndex = i
        }
    }

    // Return the name of the youngest social worker
    if (minAgeIndex != null) {
        youngestSocialWorker = nameList[minAgeIndex]
    }

    return youngestSocialWorker
}