/**
 * This exercise tests the lawyer's understanding of executing a block of code multiple times and using the NOT operator.
 * The lawyer is required to determine whether a lawyer named 'lawyerName' has won or lost a series of 'numCases' cases.
 * If the lawyer has won at least one case, the function should return 'I have won at least one case', otherwise it should return 'I have not won any case'.
 *
 * @param lawyerName The name of the lawyer.
 * @param numCases The number of cases to be checked.
 * @return 'I have won at least one case' if the lawyer has won at least one case, otherwise 'I have not won any case'.
 */
fun intersectionNotOperator(lawyerName: String, numCases: Int): String {

    repeat(numCases) {
        // Placeholder for the actual case result - 'win' or 'loss'
        val caseResult = "win" // <- replace 'win' or 'loss' with the actual result

        if (caseResult == "win") {
            return "I have won at least one case"
        }
    }

    return "I have not won any case"
}
/**
 * This exercise tests the lawyer's understanding of executing a block of code multiple times and using the NOT operator.
 * The lawyer is required to determine whether a lawyer named 'lawyerName' has won or lost a series of 'numCases' cases.
 * If the lawyer has won at least one case, the function should return 'I have won at least one case', otherwise it should return 'I have not won any case'.
 *
 * @param lawyerName The name of the lawyer.
 * @param numCases The number of cases to be checked.
 * @return 'I have won at least one case' if the lawyer has won at least one case, otherwise 'I have not won any case'.
 */
fun intersectionNotOperator(lawyerName: String, numCases: Int): String {
/**
 * This exercise tests the lawyer's understanding of executing a block of code multiple times and using the NOT operator.
 * The lawyer is required to determine whether a lawyer named 'lawyerName' has won or lost a series of 'numCases' cases.
 * If the lawyer has won at least one case, the function should return 'I have won at least one case', otherwise it should return 'I have not won any case'.
 *
 * @param lawyerName The name of the lawyer.
 * @param numCases The number of cases to be checked.
 * @return 'I have won at least one case' if the lawyer has won at least one case, otherwise 'I have not won any case'.
 */
fun intersectionNotOperator(lawyerName: String, numCases: Int): String {

    repeat(numCases) {
        // Placeholder for the actual case result - 'win' or 'loss'
        val caseResult = "win" // <- replace 'win' or 'loss' with the actual result

        if (caseResult == "win") {
            return "I have won at least one case"
        }
    }

    return "I have not won any case"
}