/**
 * Given a list of case worker names and a list of names to skip,
 * return a list of case workers excluding the names in the skip list.
 *
 * @param names List of case worker names
 * @param toSkip List of names to skip
 * @return List of case workers excluding the names in the skip list
 *
 * Example:
 * names = ["John", "Mary", "Robert", "Lisa"]
 * toSkip = ["Mary", "Robert"]
 * getCaseWorkers(names, toSkip) -> ["John", "Lisa"]
 */
fun getCaseWorkers(names: List<String>, toSkip: List<String>): List<String> {

    val caseWorkers = mutableListOf<String>()

    for (name in names) {
        var continueLoop = false
        for (skipName in toSkip) {
            if (name == skipName) {
                continueLoop = true
                break
            }
        }
        if (continueLoop) {
            continue
        }
        caseWorkers.add(name)
    }

    return caseWorkers
}
/**
 * Given a list of case worker names and a list of names to skip,
 * return a list of case workers excluding the names in the skip list.
 *
 * @param names List of case worker names
 * @param toSkip List of names to skip
 * @return List of case workers excluding the names in the skip list
 *
 * Example:
 * names = ["John", "Mary", "Robert", "Lisa"]
 * toSkip = ["Mary", "Robert"]
 * getCaseWorkers(names, toSkip) -> ["John", "Lisa"]
 */
fun getCaseWorkers(names: List<String>, toSkip: List<String>): List<String> {
/**
 * Given a list of case worker names and a list of names to skip,
 * return a list of case workers excluding the names in the skip list.
 *
 * @param names List of case worker names
 * @param toSkip List of names to skip
 * @return List of case workers excluding the names in the skip list
 *
 * Example:
 * names = ["John", "Mary", "Robert", "Lisa"]
 * toSkip = ["Mary", "Robert"]
 * getCaseWorkers(names, toSkip) -> ["John", "Lisa"]
 */
fun getCaseWorkers(names: List<String>, toSkip: List<String>): List<String> {

    val caseWorkers = mutableListOf<String>()

    for (name in names) {
        var continueLoop = false
        for (skipName in toSkip) {
            if (name == skipName) {
                continueLoop = true
                break
            }
        }
        if (continueLoop) {
            continue
        }
        caseWorkers.add(name)
    }

    return caseWorkers
}