/**
 * The police officer needs to find the stolen items in a list of crimes.
 * Each crime is represented as a dictionary with 'location' and 'items' keys.
 * The officer needs to iterate over each crime and check if any of the stolen items match with the items reported as stolen.
 * Return a list of locations where the stolen items were found.
 */
fun findStolenItems(crimes: List<Map<String, Any>>): List<String> {

    val stolenItems = listOf("laptop", "jewelry", "cash")
    val stolenLocations = mutableListOf<String>()

    for (crime in crimes) {
        for (item in crime["items"] as List<String>) {
            if (item in stolenItems) {
                stolenLocations.add(crime["location"] as String)
            }
        }
    }

    return stolenLocations
}
/**
 * The police officer needs to find the stolen items in a list of crimes.
 * Each crime is represented as a dictionary with 'location' and 'items' keys.
 * The officer needs to iterate over each crime and check if any of the stolen items match with the items reported as stolen.
 * Return a list of locations where the stolen items were found.
 */
fun findStolenItems(crimes: List<Map<String, Any>>): List<String> {
/**
 * The police officer needs to find the stolen items in a list of crimes.
 * Each crime is represented as a dictionary with 'location' and 'items' keys.
 * The officer needs to iterate over each crime and check if any of the stolen items match with the items reported as stolen.
 * Return a list of locations where the stolen items were found.
 */
fun findStolenItems(crimes: List<Map<String, Any>>): List<String> {

    val stolenItems = listOf("laptop", "jewelry", "cash")
    val stolenLocations = mutableListOf<String>()

    for (crime in crimes) {
        for (item in crime["items"] as List<String>) {
            if (item in stolenItems) {
                stolenLocations.add(crime["location"] as String)
            }
        }
    }

    return stolenLocations
}