/**
 * Given a list of data and a value to replace, this function replaces all occurrences of the value in the list and
 * returns the modified list.
 *
 * @param data A list of elements.
 * @param toReplace The value to be replaced.
 * @return A list with all occurrences of the value replaced.
 */
fun sliceAndReplaceElements(data: MutableList<String>, toReplace: String): List<String> {

    // TODO: Replace all occurrences of 'toReplace' in 'data' list with the string "REPLACED"
    
    return data
}
/**
 * Given a list of data and a value to replace, this function replaces all occurrences of the value in the list and
 * returns the modified list.
 *
 * @param data A list of elements.
 * @param toReplace The value to be replaced.
 * @return A list with all occurrences of the value replaced.
 */
fun sliceAndReplaceElements(data: MutableList<String>, toReplace: String): List<String> {
/**
 * Given a list of data and a value to replace, this function replaces all occurrences of the value in the list and
 * returns the modified list.
 *
 * @param data A list of elements.
 * @param toReplace The value to be replaced.
 * @return A list with all occurrences of the value replaced.
 */
fun sliceAndReplaceElements(data: MutableList<String>, toReplace: String): List<String> {

    // TODO: Replace all occurrences of 'toReplace' in 'data' list with the string "REPLACED"
    
    return data
}