/**
 * This function takes a tuple of police officer's identification numbers and a set of evidence item numbers.
 * It removes all odd numbers from the evidence set that match the last digit of any police officer's ID.
 * The function returns the updated evidence set after removal.
 *
 * @param policeOfficer A tuple of police officer's identification numbers.
 * @param evidence A set of evidence item numbers.
 * @return A set containing only the evidence item numbers after removing all odd numbers matching the last digit of
 * any police officer's ID.
 */
fun removeOddNumbers(policeOfficer: List<Int>, evidence: MutableSet<Int>): MutableSet<Int> {

    val updatedEvidence = evidence.toMutableSet()
    for (officerId in policeOfficer) {
        val lastDigit = officerId.toString().last()
        updatedEvidence.removeIf { it.toString().last() == lastDigit }
    }
    return updatedEvidence
}

// Example Usage
val policeOfficerIds = listOf(12345, 67890, 24680)
val evidenceItems = mutableSetOf(11111, 22222, 33333, 44444, 55555, 66666, 77777, 88888)
val updatedEvidenceItems = removeOddNumbers(policeOfficerIds, evidenceItems)
/**
 * This function takes a tuple of police officer's identification numbers and a set of evidence item numbers.
 * It removes all odd numbers from the evidence set that match the last digit of any police officer's ID.
 * The function returns the updated evidence set after removal.
 *
 * @param policeOfficer A tuple of police officer's identification numbers.
 * @param evidence A set of evidence item numbers.
 * @return A set containing only the evidence item numbers after removing all odd numbers matching the last digit of
 * any police officer's ID.
 */
fun removeOddNumbers(policeOfficer: List<Int>, evidence: MutableSet<Int>): MutableSet<Int> {
/**
 * This function takes a tuple of police officer's identification numbers and a set of evidence item numbers.
 * It removes all odd numbers from the evidence set that match the last digit of any police officer's ID.
 * The function returns the updated evidence set after removal.
 *
 * @param policeOfficer A tuple of police officer's identification numbers.
 * @param evidence A set of evidence item numbers.
 * @return A set containing only the evidence item numbers after removing all odd numbers matching the last digit of
 * any police officer's ID.
 */
fun removeOddNumbers(policeOfficer: List<Int>, evidence: MutableSet<Int>): MutableSet<Int> {

    val updatedEvidence = evidence.toMutableSet()
    for (officerId in policeOfficer) {
        val lastDigit = officerId.toString().last()
        updatedEvidence.removeIf { it.toString().last() == lastDigit }
    }
    return updatedEvidence
}

// Example Usage
val policeOfficerIds = listOf(12345, 67890, 24680)
val evidenceItems = mutableSetOf(11111, 22222, 33333, 44444, 55555, 66666, 77777, 88888)
val updatedEvidenceItems = removeOddNumbers(policeOfficerIds, evidenceItems)