/**
 * Exercise: Remove Duplicates
 *
 * Given a list of nurses, remove any duplicate names.
 *
 * @param nurses A list of tuples, each containing the name, age, and shift of a nurse.
 * @return A new list of unique nurse names.
 */
fun removeDuplicates(nurses: List<Triple<String, Int, String>>): List<String> {

    val uniqueNames = mutableListOf<String>()

    for (nurse in nurses) {
        val name = nurse.first
        if (name !in uniqueNames) {
            uniqueNames.add(name)
        }
    }

    return uniqueNames
}
/**
 * Exercise: Remove Duplicates
 *
 * Given a list of nurses, remove any duplicate names.
 *
 * @param nurses A list of tuples, each containing the name, age, and shift of a nurse.
 * @return A new list of unique nurse names.
 */
fun removeDuplicates(nurses: List<Triple<String, Int, String>>): List<String> {
/**
 * Exercise: Remove Duplicates
 *
 * Given a list of nurses, remove any duplicate names.
 *
 * @param nurses A list of tuples, each containing the name, age, and shift of a nurse.
 * @return A new list of unique nurse names.
 */
fun removeDuplicates(nurses: List<Triple<String, Int, String>>): List<String> {

    val uniqueNames = mutableListOf<String>()

    for (nurse in nurses) {
        val name = nurse.first
        if (name !in uniqueNames) {
            uniqueNames.add(name)
        }
    }

    return uniqueNames
}