/**
 * This function checks if the given firefighter is assigned to a particular role.
 *
 * @param firefighterRoles A dictionary containing firefighter names as keys and their assigned roles as values.
 * @param name The name of the firefighter to be checked.
 * @return The role assigned to the firefighter if found, otherwise returns "Unknown".
 */
fun checkFirefighterRole(firefighterRoles: Map<String, String>, name: String): String {

    if (name in firefighterRoles) {
        // Implement code to check the role assigned to the firefighter using an if-else statement
        when (firefighterRoles[name]) {
            "Captain" -> return "Captain"
            // Add more cases here
            "Lieutenant" -> return "Lieutenant"
            "Firefighter" -> return "Firefighter"
        }
    }
    return "Unknown"
}
/**
 * This function checks if the given firefighter is assigned to a particular role.
 *
 * @param firefighterRoles A dictionary containing firefighter names as keys and their assigned roles as values.
 * @param name The name of the firefighter to be checked.
 * @return The role assigned to the firefighter if found, otherwise returns "Unknown".
 */
fun checkFirefighterRole(firefighterRoles: Map<String, String>, name: String): String {
/**
 * This function checks if the given firefighter is assigned to a particular role.
 *
 * @param firefighterRoles A dictionary containing firefighter names as keys and their assigned roles as values.
 * @param name The name of the firefighter to be checked.
 * @return The role assigned to the firefighter if found, otherwise returns "Unknown".
 */
fun checkFirefighterRole(firefighterRoles: Map<String, String>, name: String): String {

    if (name in firefighterRoles) {
        // Implement code to check the role assigned to the firefighter using an if-else statement
        when (firefighterRoles[name]) {
            "Captain" -> return "Captain"
            // Add more cases here
            "Lieutenant" -> return "Lieutenant"
            "Firefighter" -> return "Firefighter"
        }
    }
    return "Unknown"
}