/**
 * Given a map of engine power values for different flight conditions,
 * this function finds the maximum engine power and returns it.
 *
 * @param flightData A map where the keys are flight conditions and
 *                   the values are corresponding engine power values.
 * @return The maximum engine power value.
 *
 * Example:
 * '``
 * val flightData = mapOf("takeoff" to 25000, "cruise" to 18000, "landing" to 20000)
 * findMaxEnginePower(flightData) // Output: 25000
 * '``
 */
fun findMaxEnginePower(flightData: Map<String, Int>): Int {

    var maxPower = Int.MIN_VALUE

    for ((_, power) in flightData) {
        if (power > maxPower) {
            maxPower = power
        }
    }

    return maxPower
}
/**
 * Given a map of engine power values for different flight conditions,
 * this function finds the maximum engine power and returns it.
 *
 * @param flightData A map where the keys are flight conditions and
 *                   the values are corresponding engine power values.
 * @return The maximum engine power value.
 *
 * Example:
 * '``
 * val flightData = mapOf("takeoff" to 25000, "cruise" to 18000, "landing" to 20000)
 * findMaxEnginePower(flightData) // Output: 25000
 * '``
 */
fun findMaxEnginePower(flightData: Map<String, Int>): Int {
/**
 * Given a map of engine power values for different flight conditions,
 * this function finds the maximum engine power and returns it.
 *
 * @param flightData A map where the keys are flight conditions and
 *                   the values are corresponding engine power values.
 * @return The maximum engine power value.
 *
 * Example:
 * '``
 * val flightData = mapOf("takeoff" to 25000, "cruise" to 18000, "landing" to 20000)
 * findMaxEnginePower(flightData) // Output: 25000
 * '``
 */
fun findMaxEnginePower(flightData: Map<String, Int>): Int {

    var maxPower = Int.MIN_VALUE

    for ((_, power) in flightData) {
        if (power > maxPower) {
            maxPower = power
        }
    }

    return maxPower
}