/**
 * This function takes a list of case titles and a keyword as parameters and returns a list of case titles
 * that contain the provided keyword.
 */
fun findCasesWithKeyword(cases: List<String>, keyword: String): List<String> {

    val foundCases = mutableListOf<String>()  // Initialize an empty list to store the case titles

    for (case in cases) {
        if (keyword.toLowerCase() in case.toLowerCase()) {  // Check if the keyword is present in the case title (case-insensitive)
            foundCases.add(case)  // Add the case title to the list of found cases
        }
    }

    return foundCases
}
/**
 * This function takes a list of case titles and a keyword as parameters and returns a list of case titles
 * that contain the provided keyword.
 */
fun findCasesWithKeyword(cases: List<String>, keyword: String): List<String> {
/**
 * This function takes a list of case titles and a keyword as parameters and returns a list of case titles
 * that contain the provided keyword.
 */
fun findCasesWithKeyword(cases: List<String>, keyword: String): List<String> {

    val foundCases = mutableListOf<String>()  // Initialize an empty list to store the case titles

    for (case in cases) {
        if (keyword.toLowerCase() in case.toLowerCase()) {  // Check if the keyword is present in the case title (case-insensitive)
            foundCases.add(case)  // Add the case title to the list of found cases
        }
    }

    return foundCases
}