/**
 * In this exercise, you will need to complete the code snippet to replace all occurrences of the placeholder with
 * the product of the numbers in the given list. To do this, you will use the multiplication assignment operator
 * to modify the list in place.
 *
 * @param numbersList A list of integers.
 * @param placeholder A placeholder value.
 */
fun multiplicationAssignmentOperatorNonePlaceholder(numbersList: MutableList<Int>, placeholder: Int) {

    var product = 1
    for (i in numbersList.indices) {
        if (numbersList[i] == placeholder) {
            numbersList[i] = product
        } else {
            product *= numbersList[i]
        }
    }
}

// Example usage
/**
 * In this exercise, you will need to complete the code snippet to replace all occurrences of the placeholder with
 * the product of the numbers in the given list. To do this, you will use the multiplication assignment operator
 * to modify the list in place.
 *
 * @param numbersList A list of integers.
 * @param placeholder A placeholder value.
 */
fun multiplicationAssignmentOperatorNonePlaceholder(numbersList: MutableList<Int>, placeholder: Int) {
/**
 * In this exercise, you will need to complete the code snippet to replace all occurrences of the placeholder with
 * the product of the numbers in the given list. To do this, you will use the multiplication assignment operator
 * to modify the list in place.
 *
 * @param numbersList A list of integers.
 * @param placeholder A placeholder value.
 */
fun multiplicationAssignmentOperatorNonePlaceholder(numbersList: MutableList<Int>, placeholder: Int) {

    var product = 1
    for (i in numbersList.indices) {
        if (numbersList[i] == placeholder) {
            numbersList[i] = product
        } else {
            product *= numbersList[i]
        }
    }
}

// Example usage