/**
 * A firefighter needs to extinguish a fire based on its size and speed. The fire can be either small, medium, or large,
 * and its speed can be slow, moderate, or fast. The firefighter can only approach the fire if the size is small or medium
 * and the speed is slow or moderate. Otherwise, the firefighter should call for backup.
 *
 * Your task is to write a code that decides whether the firefighter can approach the fire or should call for backup.
 *
 * @param fireSize The size of the fire (can be 'small', 'medium', or 'large').
 * @param fireSpeed The speed of the fire (can be 'slow', 'moderate', or 'fast').
 * @return Returns 'Approach fire' if the firefighter can approach the fire, otherwise 'Call for backup'.
 */
fun extinguishFire(fireSize: String, fireSpeed: String): String {

    // Conditions for firefighter to approach the fire
    if (fireSize == "small" && fireSpeed == "slow") {
        return "Approach fire"
    }
    
    if (fireSize == "small" && fireSpeed == "moderate") {
        return "Approach fire"
    }
    
    return "Call for backup"
}
/**
 * A firefighter needs to extinguish a fire based on its size and speed. The fire can be either small, medium, or large,
 * and its speed can be slow, moderate, or fast. The firefighter can only approach the fire if the size is small or medium
 * and the speed is slow or moderate. Otherwise, the firefighter should call for backup.
 *
 * Your task is to write a code that decides whether the firefighter can approach the fire or should call for backup.
 *
 * @param fireSize The size of the fire (can be 'small', 'medium', or 'large').
 * @param fireSpeed The speed of the fire (can be 'slow', 'moderate', or 'fast').
 * @return Returns 'Approach fire' if the firefighter can approach the fire, otherwise 'Call for backup'.
 */
fun extinguishFire(fireSize: String, fireSpeed: String): String {
/**
 * A firefighter needs to extinguish a fire based on its size and speed. The fire can be either small, medium, or large,
 * and its speed can be slow, moderate, or fast. The firefighter can only approach the fire if the size is small or medium
 * and the speed is slow or moderate. Otherwise, the firefighter should call for backup.
 *
 * Your task is to write a code that decides whether the firefighter can approach the fire or should call for backup.
 *
 * @param fireSize The size of the fire (can be 'small', 'medium', or 'large').
 * @param fireSpeed The speed of the fire (can be 'slow', 'moderate', or 'fast').
 * @return Returns 'Approach fire' if the firefighter can approach the fire, otherwise 'Call for backup'.
 */
fun extinguishFire(fireSize: String, fireSpeed: String): String {

    // Conditions for firefighter to approach the fire
    if (fireSize == "small" && fireSpeed == "slow") {
        return "Approach fire"
    }
    
    if (fireSize == "small" && fireSpeed == "moderate") {
        return "Approach fire"
    }
    
    return "Call for backup"
}