/**
 * Given two sets of car records and thief records, this function returns a set containing the license plate numbers of the stolen cars.
 *
 * @param carRecords A set of car records containing license plate numbers (strings).
 * @param thiefRecords A set of thief records containing license plate numbers (strings).
 * @return A set of license plate numbers (strings) of the stolen cars present in both the car records and thief records.
 */
fun getStolenCarsLicensePlateNumbers(carRecords: Set<String>, thiefRecords: Set<String>): Set<String> {

    val stolenCarsLicensePlateNumbers = mutableSetOf<String>()

    for (car in carRecords) {
        val licensePlateNumber = car
        for (thief in thiefRecords) {
            if (licensePlateNumber == thief) {
                stolenCarsLicensePlateNumbers.add(licensePlateNumber)
            }
        }
    }

    return stolenCarsLicensePlateNumbers
}
/**
 * Given two sets of car records and thief records, this function returns a set containing the license plate numbers of the stolen cars.
 *
 * @param carRecords A set of car records containing license plate numbers (strings).
 * @param thiefRecords A set of thief records containing license plate numbers (strings).
 * @return A set of license plate numbers (strings) of the stolen cars present in both the car records and thief records.
 */
fun getStolenCarsLicensePlateNumbers(carRecords: Set<String>, thiefRecords: Set<String>): Set<String> {
/**
 * Given two sets of car records and thief records, this function returns a set containing the license plate numbers of the stolen cars.
 *
 * @param carRecords A set of car records containing license plate numbers (strings).
 * @param thiefRecords A set of thief records containing license plate numbers (strings).
 * @return A set of license plate numbers (strings) of the stolen cars present in both the car records and thief records.
 */
fun getStolenCarsLicensePlateNumbers(carRecords: Set<String>, thiefRecords: Set<String>): Set<String> {

    val stolenCarsLicensePlateNumbers = mutableSetOf<String>()

    for (car in carRecords) {
        val licensePlateNumber = car
        for (thief in thiefRecords) {
            if (licensePlateNumber == thief) {
                stolenCarsLicensePlateNumbers.add(licensePlateNumber)
            }
        }
    }

    return stolenCarsLicensePlateNumbers
}