/**
 * You are a firefighter in charge of keeping track of the names of the people you have rescued.
 * In this exercise, you need to implement a function that appends a specific count of names to a given list.
 * The names to be appended are a combination of the firefighter's name and a unique number generated for each name.
 *
 * @param names A list of names already recorded.
 * @param count The number of names to append.
 * @return The updated list with the specified count of names appended.
 */
fun appendNames(names: MutableList<String>, count: Int): List<String> {

    val firefighterName = "Firefighter" // Replace with your firefighter name
    val newNames = mutableListOf<String>()

    for (i in 1..count) {
        val uniqueNumber = names.size + i
        val name = "$firefighterName $uniqueNumber"
        names.add(name)
        newNames.add(name)
    }

    return newNames
}
/**
 * You are a firefighter in charge of keeping track of the names of the people you have rescued.
 * In this exercise, you need to implement a function that appends a specific count of names to a given list.
 * The names to be appended are a combination of the firefighter's name and a unique number generated for each name.
 *
 * @param names A list of names already recorded.
 * @param count The number of names to append.
 * @return The updated list with the specified count of names appended.
 */
fun appendNames(names: MutableList<String>, count: Int): List<String> {
/**
 * You are a firefighter in charge of keeping track of the names of the people you have rescued.
 * In this exercise, you need to implement a function that appends a specific count of names to a given list.
 * The names to be appended are a combination of the firefighter's name and a unique number generated for each name.
 *
 * @param names A list of names already recorded.
 * @param count The number of names to append.
 * @return The updated list with the specified count of names appended.
 */
fun appendNames(names: MutableList<String>, count: Int): List<String> {

    val firefighterName = "Firefighter" // Replace with your firefighter name
    val newNames = mutableListOf<String>()

    for (i in 1..count) {
        val uniqueNumber = names.size + i
        val name = "$firefighterName $uniqueNumber"
        names.add(name)
        newNames.add(name)
    }

    return newNames
}