/**
 * In this exercise, you are tasked with modifying specific elements of a given list
 * using the range function. Your task is to complete the code by replacing the blanks 
 * to meet the specified requirements.
 *
 * @param nurseName The name of the nurse attempting the exercise.
 * @param listOfValues A list containing integer values.
 * @return The modified list.
 */
fun modifyListElements(nurseName: String, listOfValues: MutableList<Int>): List<Int> {

    println("Welcome, Nurse $nurseName!")
    println("Given the list of values: $listOfValues")
    println("You must modify the list according to the following criteria:")

    // MODIFY BELOW HERE

    // 1. Change the third element to 100
    listOfValues[2] = 100

    // 2. Increment the second element by 5
    listOfValues[1] += 5

    // 3. Multiply the fourth element by 2
    listOfValues[3] *= 2

    // 4. Set the first element equal to the new sum of the second and third elements
    listOfValues[0] = listOfValues[1] + listOfValues[2]

    return listOfValues
}
/**
 * In this exercise, you are tasked with modifying specific elements of a given list
 * using the range function. Your task is to complete the code by replacing the blanks 
 * to meet the specified requirements.
 *
 * @param nurseName The name of the nurse attempting the exercise.
 * @param listOfValues A list containing integer values.
 * @return The modified list.
 */
fun modifyListElements(nurseName: String, listOfValues: MutableList<Int>): List<Int> {
/**
 * In this exercise, you are tasked with modifying specific elements of a given list
 * using the range function. Your task is to complete the code by replacing the blanks 
 * to meet the specified requirements.
 *
 * @param nurseName The name of the nurse attempting the exercise.
 * @param listOfValues A list containing integer values.
 * @return The modified list.
 */
fun modifyListElements(nurseName: String, listOfValues: MutableList<Int>): List<Int> {

    println("Welcome, Nurse $nurseName!")
    println("Given the list of values: $listOfValues")
    println("You must modify the list according to the following criteria:")

    // MODIFY BELOW HERE

    // 1. Change the third element to 100
    listOfValues[2] = 100

    // 2. Increment the second element by 5
    listOfValues[1] += 5

    // 3. Multiply the fourth element by 2
    listOfValues[3] *= 2

    // 4. Set the first element equal to the new sum of the second and third elements
    listOfValues[0] = listOfValues[1] + listOfValues[2]

    return listOfValues
}