/**
 * Given a list of criminals and a police officer, this function uses the XOR operator to determine whether the officer is present in the list of criminals.
 * The function returns true if the officer is found in the criminal list, otherwise it returns false.
 */
fun xorOperatorList(policeOfficer: String, criminalList: List<String>): Boolean {

    var result = false
    for (criminal in criminalList) {
        result = result xor (policeOfficer == criminal)
    }
    return result
}

// Example usage
/**
 * Given a list of criminals and a police officer, this function uses the XOR operator to determine whether the officer is present in the list of criminals.
 * The function returns true if the officer is found in the criminal list, otherwise it returns false.
 */
fun xorOperatorList(policeOfficer: String, criminalList: List<String>): Boolean {
/**
 * Given a list of criminals and a police officer, this function uses the XOR operator to determine whether the officer is present in the list of criminals.
 * The function returns true if the officer is found in the criminal list, otherwise it returns false.
 */
fun xorOperatorList(policeOfficer: String, criminalList: List<String>): Boolean {

    var result = false
    for (criminal in criminalList) {
        result = result xor (policeOfficer == criminal)
    }
    return result
}

// Example usage