/**
 * This function takes a list of legal documents and modifies them by replacing certain keywords with their respective values.
 *
 * @param legalDocuments A list of legal documents to be modified.
 * @return A modified list of legal documents.
 */
fun modifyLegalDocuments(legalDocuments: List<String>): List<String> {

    val keywords = mapOf("[CLIENT_NAME]" to "John Doe", "[CASE_NUMBER]" to "123456")
    
    val modifiedDocuments = mutableListOf<String>()
    
    for (document in legalDocuments) {
        var modifiedDocument = document
        for ((keyword, value) in keywords) {
            modifiedDocument = modifiedDocument.replace(keyword, value)
        }
        modifiedDocuments.add(modifiedDocument)
    }
    
    return modifiedDocuments
}

// Task: Complete the code above to modify the legal documents using nested loops and indexing.

// Example usage:
/**
 * This function takes a list of legal documents and modifies them by replacing certain keywords with their respective values.
 *
 * @param legalDocuments A list of legal documents to be modified.
 * @return A modified list of legal documents.
 */
fun modifyLegalDocuments(legalDocuments: List<String>): List<String> {
/**
 * This function takes a list of legal documents and modifies them by replacing certain keywords with their respective values.
 *
 * @param legalDocuments A list of legal documents to be modified.
 * @return A modified list of legal documents.
 */
fun modifyLegalDocuments(legalDocuments: List<String>): List<String> {

    val keywords = mapOf("[CLIENT_NAME]" to "John Doe", "[CASE_NUMBER]" to "123456")
    
    val modifiedDocuments = mutableListOf<String>()
    
    for (document in legalDocuments) {
        var modifiedDocument = document
        for ((keyword, value) in keywords) {
            modifiedDocument = modifiedDocument.replace(keyword, value)
        }
        modifiedDocuments.add(modifiedDocument)
    }
    
    return modifiedDocuments
}

// Task: Complete the code above to modify the legal documents using nested loops and indexing.

// Example usage: