/**
 * This function takes in a list of firefighters and a fire station number.
 * It returns a list of the names of firefighters assigned to that specific fire station.
 */
fun findFirefighters(firefighters: List<Pair<String, Int>>, fireStation: Int): List<String> {

    // Initialize an empty list to store the names of firefighters
    val assignedFirefighters = mutableListOf<String>()

    // Loop through each firefighter in the list
    for (firefighter in firefighters) {
        // Get the fire station number assigned to the current firefighter
        val currentStation = firefighter.second

        // Check if the current firefighter is assigned to the specified fire station
        if (currentStation == fireStation) {
            // Add the name of the firefighter to the list
            assignedFirefighters.add(firefighter.first)
        }
    }

    return assignedFirefighters
}
/**
 * This function takes in a list of firefighters and a fire station number.
 * It returns a list of the names of firefighters assigned to that specific fire station.
 */
fun findFirefighters(firefighters: List<Pair<String, Int>>, fireStation: Int): List<String> {
/**
 * This function takes in a list of firefighters and a fire station number.
 * It returns a list of the names of firefighters assigned to that specific fire station.
 */
fun findFirefighters(firefighters: List<Pair<String, Int>>, fireStation: Int): List<String> {

    // Initialize an empty list to store the names of firefighters
    val assignedFirefighters = mutableListOf<String>()

    // Loop through each firefighter in the list
    for (firefighter in firefighters) {
        // Get the fire station number assigned to the current firefighter
        val currentStation = firefighter.second

        // Check if the current firefighter is assigned to the specified fire station
        if (currentStation == fireStation) {
            // Add the name of the firefighter to the list
            assignedFirefighters.add(firefighter.first)
        }
    }

    return assignedFirefighters
}