/**
 * Given a list of values representing the performance of an athlete in different events and a threshold value,
 * modify the elements in the list that are greater than the threshold by incrementing them by 10.
 *
 * @param athlete A list of values representing the performance of an athlete.
 * @param threshold The threshold value.
 * @return The modified list of athlete's performance.
 *
 * Example:
 * modifyElementsGreaterThan(listOf(5, 7, 12, 9, 4), 6)
 * Output: [5, 17, 22, 19, 4]
 */
fun modifyElementsGreaterThan(athlete: MutableList<Int>, threshold: Int): List<Int> {

    for (i in athlete.indices) {
        if (athlete[i] > threshold) {
            athlete[i] += 10
        }
    }
    return athlete
}
/**
 * Given a list of values representing the performance of an athlete in different events and a threshold value,
 * modify the elements in the list that are greater than the threshold by incrementing them by 10.
 *
 * @param athlete A list of values representing the performance of an athlete.
 * @param threshold The threshold value.
 * @return The modified list of athlete's performance.
 *
 * Example:
 * modifyElementsGreaterThan(listOf(5, 7, 12, 9, 4), 6)
 * Output: [5, 17, 22, 19, 4]
 */
fun modifyElementsGreaterThan(athlete: MutableList<Int>, threshold: Int): List<Int> {
/**
 * Given a list of values representing the performance of an athlete in different events and a threshold value,
 * modify the elements in the list that are greater than the threshold by incrementing them by 10.
 *
 * @param athlete A list of values representing the performance of an athlete.
 * @param threshold The threshold value.
 * @return The modified list of athlete's performance.
 *
 * Example:
 * modifyElementsGreaterThan(listOf(5, 7, 12, 9, 4), 6)
 * Output: [5, 17, 22, 19, 4]
 */
fun modifyElementsGreaterThan(athlete: MutableList<Int>, threshold: Int): List<Int> {

    for (i in athlete.indices) {
        if (athlete[i] > threshold) {
            athlete[i] += 10
        }
    }
    return athlete
}