/**
 * Given the time and skill of an athlete, calculate the performance level based on the following criteria:
 * - If the time is less than 10 seconds and skill is greater than 8, the performance is exceptional.
 * - If the time is between 10 and 20 seconds (both inclusive) and skill is between 5 and 8 (both inclusive), the performance is good.
 * - If the time is more than 20 seconds or skill is less than or equal to 5, the performance is poor.
 *
 * @param time Time taken by the athlete in seconds.
 * @param skill Skill level of the athlete.
 * @return Performance level of the athlete.
 *
 * Example:
 * athletePerformance(9.5, 9) -> "Exceptional"
 * athletePerformance(11.0, 6) -> "Good"
 * athletePerformance(25.0, 4) -> "Poor"
 */
fun athletePerformance(time: Double, skill: Int): String {

    return when {
        time < 10 && skill > 8 -> "Exceptional"
        time in 10.0..20.0 && skill in 5..8 -> "Good"
        else -> "Poor"
    }
}
/**
 * Given the time and skill of an athlete, calculate the performance level based on the following criteria:
 * - If the time is less than 10 seconds and skill is greater than 8, the performance is exceptional.
 * - If the time is between 10 and 20 seconds (both inclusive) and skill is between 5 and 8 (both inclusive), the performance is good.
 * - If the time is more than 20 seconds or skill is less than or equal to 5, the performance is poor.
 *
 * @param time Time taken by the athlete in seconds.
 * @param skill Skill level of the athlete.
 * @return Performance level of the athlete.
 *
 * Example:
 * athletePerformance(9.5, 9) -> "Exceptional"
 * athletePerformance(11.0, 6) -> "Good"
 * athletePerformance(25.0, 4) -> "Poor"
 */
fun athletePerformance(time: Double, skill: Int): String {
/**
 * Given the time and skill of an athlete, calculate the performance level based on the following criteria:
 * - If the time is less than 10 seconds and skill is greater than 8, the performance is exceptional.
 * - If the time is between 10 and 20 seconds (both inclusive) and skill is between 5 and 8 (both inclusive), the performance is good.
 * - If the time is more than 20 seconds or skill is less than or equal to 5, the performance is poor.
 *
 * @param time Time taken by the athlete in seconds.
 * @param skill Skill level of the athlete.
 * @return Performance level of the athlete.
 *
 * Example:
 * athletePerformance(9.5, 9) -> "Exceptional"
 * athletePerformance(11.0, 6) -> "Good"
 * athletePerformance(25.0, 4) -> "Poor"
 */
fun athletePerformance(time: Double, skill: Int): String {

    return when {
        time < 10 && skill > 8 -> "Exceptional"
        time in 10.0..20.0 && skill in 5..8 -> "Good"
        else -> "Poor"
    }
}