/**
 * Given a list of nurse names and a threshold value, return the count of nurses
 * whose names start with a letter greater than the threshold value.
 *
 * @param nurseList A list of nurse names.
 * @param threshold The threshold value.
 * @return The count of nurses with names starting with a letter greater than the threshold.
 */
fun greaterThanLooping(nurseList: List<String>, threshold: Char): Int {

    var count = 0

    // Loop through each nurse's name in the list
    for (nurse in nurseList) {
        // Check if the first letter of the nurse's name is greater than the threshold
        if (nurse[0] > threshold) {
            count++
        }
    }

    return count
}

// Example usage
/**
 * Given a list of nurse names and a threshold value, return the count of nurses
 * whose names start with a letter greater than the threshold value.
 *
 * @param nurseList A list of nurse names.
 * @param threshold The threshold value.
 * @return The count of nurses with names starting with a letter greater than the threshold.
 */
fun greaterThanLooping(nurseList: List<String>, threshold: Char): Int {
/**
 * Given a list of nurse names and a threshold value, return the count of nurses
 * whose names start with a letter greater than the threshold value.
 *
 * @param nurseList A list of nurse names.
 * @param threshold The threshold value.
 * @return The count of nurses with names starting with a letter greater than the threshold.
 */
fun greaterThanLooping(nurseList: List<String>, threshold: Char): Int {

    var count = 0

    // Loop through each nurse's name in the list
    for (nurse in nurseList) {
        // Check if the first letter of the nurse's name is greater than the threshold
        if (nurse[0] > threshold) {
            count++
        }
    }

    return count
}

// Example usage