/**
 * This function takes a list of nurse names and a number as input and returns the index of the first nurse name that is
 * less than the given number of characters.
 */
fun lessThanListIndex(nurseList: List<String>, number: Int): Int {

    var index = -1  // Initialize the index variable

    for (i in nurseList.indices) {  // Iterate through the nurseList
        if (nurseList[i].length < number) {  // Check if the length of the current nurse name is less than the given number
            index = i  // If condition is True, assign the index of the current nurse name
        }
    }

    return index
}

// Example usage
/**
 * This function takes a list of nurse names and a number as input and returns the index of the first nurse name that is
 * less than the given number of characters.
 */
fun lessThanListIndex(nurseList: List<String>, number: Int): Int {
/**
 * This function takes a list of nurse names and a number as input and returns the index of the first nurse name that is
 * less than the given number of characters.
 */
fun lessThanListIndex(nurseList: List<String>, number: Int): Int {

    var index = -1  // Initialize the index variable

    for (i in nurseList.indices) {  // Iterate through the nurseList
        if (nurseList[i].length < number) {  // Check if the length of the current nurse name is less than the given number
            index = i  // If condition is True, assign the index of the current nurse name
        }
    }

    return index
}

// Example usage