/**
 * You are a lawyer and you have a list of cases to review. Each case has multiple files associated with it.
 * Your task is to iterate over the list of cases and within each case, iterate over the files to analyze the content and provide a summary of each file.
 * Complete the code below to achieve this.
 */
fun forLoopSyntax() {

    val cases = listOf("Case1", "Case2", "Case3")  // List of cases
    val files = mapOf(
        "Case1" to listOf("file1.txt", "file2.txt"),  // Files associated with Case1
        "Case2" to listOf("file3.txt", "file4.txt"),  // Files associated with Case2
        "Case3" to listOf("file5.txt", "file6.txt")   // Files associated with Case3
    )

    for (case in cases) {  // Outer loop iterating over cases
        println("\nSummary of $case:")
        // TODO: Write a nested loop to iterate over files associated with each case
        for (file in files[case]!!) {  // Inner loop iterating over files
            // TODO: Provide a summary of each file
            println("\nAnalyzing $file:")
        }
    }
}
/**
 * You are a lawyer and you have a list of cases to review. Each case has multiple files associated with it.
 * Your task is to iterate over the list of cases and within each case, iterate over the files to analyze the content and provide a summary of each file.
 * Complete the code below to achieve this.
 */
fun forLoopSyntax() {
/**
 * You are a lawyer and you have a list of cases to review. Each case has multiple files associated with it.
 * Your task is to iterate over the list of cases and within each case, iterate over the files to analyze the content and provide a summary of each file.
 * Complete the code below to achieve this.
 */
fun forLoopSyntax() {

    val cases = listOf("Case1", "Case2", "Case3")  // List of cases
    val files = mapOf(
        "Case1" to listOf("file1.txt", "file2.txt"),  // Files associated with Case1
        "Case2" to listOf("file3.txt", "file4.txt"),  // Files associated with Case2
        "Case3" to listOf("file5.txt", "file6.txt")   // Files associated with Case3
    )

    for (case in cases) {  // Outer loop iterating over cases
        println("\nSummary of $case:")
        // TODO: Write a nested loop to iterate over files associated with each case
        for (file in files[case]!!) {  // Inner loop iterating over files
            // TODO: Provide a summary of each file
            println("\nAnalyzing $file:")
        }
    }
}