/**
 * A firefighter is trying to extinguish a fire by subtracting the amount of fuel present from the water used.
 * However, there are certain conditions that need to be met in order for the fire to be completely extinguished.
 *
 * @param fuel the initial amount of fuel present
 * @param water the amount of water used to extinguish the fire
 * @return true if the fire is extinguished, false otherwise
 */
fun extinguishFire(fuel: Int, water: Int): Boolean {

    // Subtract the amount of fuel from the water used
    val remainingFuel = water - fuel

    // Check various conditions to determine if the fire is extinguished or not
    return when {
        remainingFuel > 0 -> false // If there is remaining fuel, it means the fire could not be completely extinguished
        remainingFuel < 0 -> false // If the remaining fuel is negative, it means extra fuel was used to extinguish the fire
        else -> true // If the remaining fuel is exactly 0, it means the fire was completely extinguished
    }
}
/**
 * A firefighter is trying to extinguish a fire by subtracting the amount of fuel present from the water used.
 * However, there are certain conditions that need to be met in order for the fire to be completely extinguished.
 *
 * @param fuel the initial amount of fuel present
 * @param water the amount of water used to extinguish the fire
 * @return true if the fire is extinguished, false otherwise
 */
fun extinguishFire(fuel: Int, water: Int): Boolean {
/**
 * A firefighter is trying to extinguish a fire by subtracting the amount of fuel present from the water used.
 * However, there are certain conditions that need to be met in order for the fire to be completely extinguished.
 *
 * @param fuel the initial amount of fuel present
 * @param water the amount of water used to extinguish the fire
 * @return true if the fire is extinguished, false otherwise
 */
fun extinguishFire(fuel: Int, water: Int): Boolean {

    // Subtract the amount of fuel from the water used
    val remainingFuel = water - fuel

    // Check various conditions to determine if the fire is extinguished or not
    return when {
        remainingFuel > 0 -> false // If there is remaining fuel, it means the fire could not be completely extinguished
        remainingFuel < 0 -> false // If the remaining fuel is negative, it means extra fuel was used to extinguish the fire
        else -> true // If the remaining fuel is exactly 0, it means the fire was completely extinguished
    }
}