/**
 * Given an athlete's data as a list and the index of the element to be modified,
 * modify the list by replacing the element at the specified index with the new value.
 *
 * @param athlete The list containing the athlete's data.
 * @param index The index of the element to be modified.
 * @param newValue The new value to replace the element at the specified index.
 * @return The modified athlete data list.
 *
 * Example:
 * '``
 * val athleteData = mutableListOf("John", 25, 180, 75.5)
 * modifyAthleteData(athleteData, 2, 190)
 * // Output: ["John", 25, 190, 75.5]
 * '``
 */
fun modifyAthleteData(athlete: MutableList<Any>, index: Int, newValue: Any): MutableList<Any> {

    // Modify the element at the specified index
    athlete[index] = newValue
    return athlete
}
/**
 * Given an athlete's data as a list and the index of the element to be modified,
 * modify the list by replacing the element at the specified index with the new value.
 *
 * @param athlete The list containing the athlete's data.
 * @param index The index of the element to be modified.
 * @param newValue The new value to replace the element at the specified index.
 * @return The modified athlete data list.
 *
 * Example:
 * '``
 * val athleteData = mutableListOf("John", 25, 180, 75.5)
 * modifyAthleteData(athleteData, 2, 190)
 * // Output: ["John", 25, 190, 75.5]
 * '``
 */
fun modifyAthleteData(athlete: MutableList<Any>, index: Int, newValue: Any): MutableList<Any> {
/**
 * Given an athlete's data as a list and the index of the element to be modified,
 * modify the list by replacing the element at the specified index with the new value.
 *
 * @param athlete The list containing the athlete's data.
 * @param index The index of the element to be modified.
 * @param newValue The new value to replace the element at the specified index.
 * @return The modified athlete data list.
 *
 * Example:
 * '``
 * val athleteData = mutableListOf("John", 25, 180, 75.5)
 * modifyAthleteData(athleteData, 2, 190)
 * // Output: ["John", 25, 190, 75.5]
 * '``
 */
fun modifyAthleteData(athlete: MutableList<Any>, index: Int, newValue: Any): MutableList<Any> {

    // Modify the element at the specified index
    athlete[index] = newValue
    return athlete
}