/**
 * This function takes in a list of nurse names and returns a list of number line representations.
 * Each nurse's number line representation is calculated based on the index of their name in the list.
 * The number line representation is a string consisting of numbers ranging from 0 to the total number of nurses - 1,
 * where the nurse's name is represented by 'N' and other positions are represented by '-'.
 *
 * @param nurses a list of nurse names
 * @return a list of number line representations corresponding to the nurse names
 */
fun getNumberList(nurses: List<String>): List<String> {

    val numberLines = mutableListOf<String>()
    val totalNurses = nurses.size

    for ((i, nurseName) in nurses.withIndex()) {
        var numberLine = ""
        for (j in 0 until totalNurses) {
            numberLine += if (j == i) "N" else "-"
        }
        numberLines.add(numberLine)
    }

    return numberLines
}

// Example usage
/**
 * This function takes in a list of nurse names and returns a list of number line representations.
 * Each nurse's number line representation is calculated based on the index of their name in the list.
 * The number line representation is a string consisting of numbers ranging from 0 to the total number of nurses - 1,
 * where the nurse's name is represented by 'N' and other positions are represented by '-'.
 *
 * @param nurses a list of nurse names
 * @return a list of number line representations corresponding to the nurse names
 */
fun getNumberList(nurses: List<String>): List<String> {
/**
 * This function takes in a list of nurse names and returns a list of number line representations.
 * Each nurse's number line representation is calculated based on the index of their name in the list.
 * The number line representation is a string consisting of numbers ranging from 0 to the total number of nurses - 1,
 * where the nurse's name is represented by 'N' and other positions are represented by '-'.
 *
 * @param nurses a list of nurse names
 * @return a list of number line representations corresponding to the nurse names
 */
fun getNumberList(nurses: List<String>): List<String> {

    val numberLines = mutableListOf<String>()
    val totalNurses = nurses.size

    for ((i, nurseName) in nurses.withIndex()) {
        var numberLine = ""
        for (j in 0 until totalNurses) {
            numberLine += if (j == i) "N" else "-"
        }
        numberLines.add(numberLine)
    }

    return numberLines
}

// Example usage