/**
 * This exercise aims to test your understanding of selection and tuple unpacking.
 * You are required to implement a function that takes a selected station number as input,
 * and returns the names of all firefighters stationed at that station.
 *
 * @param selectedStation The number of the selected station.
 * @return A list containing the names of all firefighters stationed at the selected station.
 *
 * Examples:
 * findFirefighter(3) -> listOf("John Smith", "Alice Johnson", "Michael Robinson")
 * findFirefighter(5) -> listOf("Emily Davis", "David Johnson")
 * findFirefighter(2) -> listOf("Liam Williams")
 */
fun findFirefighter(selectedStation: Int): List<String> {

    val firefighters = mapOf(
        1 to listOf("John Smith", "Alice Johnson"),
        2 to listOf("Liam Williams"),
        3 to listOf("John Smith", "Alice Johnson", "Michael Robinson"),
        4 to listOf("Emily Davis"),
        5 to listOf("Emily Davis", "David Johnson"),
        6 to listOf("Michael Robinson")
    )

    // Select the names of firefighters from the given station number
    return firefighters.getOrDefault(selectedStation, emptyList())
}
/**
 * This exercise aims to test your understanding of selection and tuple unpacking.
 * You are required to implement a function that takes a selected station number as input,
 * and returns the names of all firefighters stationed at that station.
 *
 * @param selectedStation The number of the selected station.
 * @return A list containing the names of all firefighters stationed at the selected station.
 *
 * Examples:
 * findFirefighter(3) -> listOf("John Smith", "Alice Johnson", "Michael Robinson")
 * findFirefighter(5) -> listOf("Emily Davis", "David Johnson")
 * findFirefighter(2) -> listOf("Liam Williams")
 */
fun findFirefighter(selectedStation: Int): List<String> {
/**
 * This exercise aims to test your understanding of selection and tuple unpacking.
 * You are required to implement a function that takes a selected station number as input,
 * and returns the names of all firefighters stationed at that station.
 *
 * @param selectedStation The number of the selected station.
 * @return A list containing the names of all firefighters stationed at the selected station.
 *
 * Examples:
 * findFirefighter(3) -> listOf("John Smith", "Alice Johnson", "Michael Robinson")
 * findFirefighter(5) -> listOf("Emily Davis", "David Johnson")
 * findFirefighter(2) -> listOf("Liam Williams")
 */
fun findFirefighter(selectedStation: Int): List<String> {

    val firefighters = mapOf(
        1 to listOf("John Smith", "Alice Johnson"),
        2 to listOf("Liam Williams"),
        3 to listOf("John Smith", "Alice Johnson", "Michael Robinson"),
        4 to listOf("Emily Davis"),
        5 to listOf("Emily Davis", "David Johnson"),
        6 to listOf("Michael Robinson")
    )

    // Select the names of firefighters from the given station number
    return firefighters.getOrDefault(selectedStation, emptyList())
}