/**
 * Given an athlete, a starting index, and a new value,
 * modify the elements in the athlete's list starting from the given index
 * until the end of the list using a while loop.
 *
 * @param athlete A list representing the athlete's statistics.
 * @param index The starting index to modify the elements.
 * @param newValue The new value to replace the elements with.
 */
fun modifyListWhileLoop(athlete: MutableList<Int>, index: Int, newValue: Int) {

    var currentIndex = index
    while (currentIndex < athlete.size) {
        athlete[currentIndex] = newValue
        currentIndex++
    }
}
/**
 * Given an athlete, a starting index, and a new value,
 * modify the elements in the athlete's list starting from the given index
 * until the end of the list using a while loop.
 *
 * @param athlete A list representing the athlete's statistics.
 * @param index The starting index to modify the elements.
 * @param newValue The new value to replace the elements with.
 */
fun modifyListWhileLoop(athlete: MutableList<Int>, index: Int, newValue: Int) {
/**
 * Given an athlete, a starting index, and a new value,
 * modify the elements in the athlete's list starting from the given index
 * until the end of the list using a while loop.
 *
 * @param athlete A list representing the athlete's statistics.
 * @param index The starting index to modify the elements.
 * @param newValue The new value to replace the elements with.
 */
fun modifyListWhileLoop(athlete: MutableList<Int>, index: Int, newValue: Int) {

    var currentIndex = index
    while (currentIndex < athlete.size) {
        athlete[currentIndex] = newValue
        currentIndex++
    }
}