/**
 * This code completion exercise focuses on the intersection of the 'Method: index()' and the 'Subtraction Assignment Operator'.
 * The task is to subtract a specific value from a graphic designer's salary list at a given index using the subtraction assignment operator.
 *
 * @param graphicDesigner A list of graphic designer salaries
 * @param index An integer representing the index at which subtraction needs to be performed
 * @return The updated list after subtracting the value at the given index
 *
 * Note:
 * Do not use the 'for' loop or any other built-in functions/methods to perform the subtraction.
 */
fun indexSubtractionAssignment(graphicDesigner: MutableList<Int>, index: Int): List<Int> {

    // Check if the given index is within the bounds of the list
    if (index >= graphicDesigner.size || index < 0) {
        return listOf(-1) // Return a list with -1 to indicate an invalid index
    }

    // Subtract a specific value from the salary at the given index using the subtraction assignment operator
    // TODO: Complete the code here

    return graphicDesigner
}
/**
 * This code completion exercise focuses on the intersection of the 'Method: index()' and the 'Subtraction Assignment Operator'.
 * The task is to subtract a specific value from a graphic designer's salary list at a given index using the subtraction assignment operator.
 *
 * @param graphicDesigner A list of graphic designer salaries
 * @param index An integer representing the index at which subtraction needs to be performed
 * @return The updated list after subtracting the value at the given index
 *
 * Note:
 * Do not use the 'for' loop or any other built-in functions/methods to perform the subtraction.
 */
fun indexSubtractionAssignment(graphicDesigner: MutableList<Int>, index: Int): List<Int> {
/**
 * This code completion exercise focuses on the intersection of the 'Method: index()' and the 'Subtraction Assignment Operator'.
 * The task is to subtract a specific value from a graphic designer's salary list at a given index using the subtraction assignment operator.
 *
 * @param graphicDesigner A list of graphic designer salaries
 * @param index An integer representing the index at which subtraction needs to be performed
 * @return The updated list after subtracting the value at the given index
 *
 * Note:
 * Do not use the 'for' loop or any other built-in functions/methods to perform the subtraction.
 */
fun indexSubtractionAssignment(graphicDesigner: MutableList<Int>, index: Int): List<Int> {

    // Check if the given index is within the bounds of the list
    if (index >= graphicDesigner.size || index < 0) {
        return listOf(-1) // Return a list with -1 to indicate an invalid index
    }

    // Subtract a specific value from the salary at the given index using the subtraction assignment operator
    // TODO: Complete the code here

    return graphicDesigner
}