/**
 * Given a dictionary of crimes and their corresponding number of occurrences,
 * iterate over the dictionary and break out of the loop when encountering a crime
 * that has been committed more than 10 times.
 *
 * @param dictionary A dictionary mapping crimes to their occurrences.
 * @return The name of the crime that has been committed more than 10 times.
 */
fun breakOutOfLoop(dictionary: Map<String, Int>): String {

    var crimeName = ""
    for ((crime, occurrences) in dictionary) {
        if (occurrences > 10) {
            // Write code here to break out of the loop
            crimeName = crime
            break
        }
    }
    return crimeName
}
/**
 * Given a dictionary of crimes and their corresponding number of occurrences,
 * iterate over the dictionary and break out of the loop when encountering a crime
 * that has been committed more than 10 times.
 *
 * @param dictionary A dictionary mapping crimes to their occurrences.
 * @return The name of the crime that has been committed more than 10 times.
 */
fun breakOutOfLoop(dictionary: Map<String, Int>): String {
/**
 * Given a dictionary of crimes and their corresponding number of occurrences,
 * iterate over the dictionary and break out of the loop when encountering a crime
 * that has been committed more than 10 times.
 *
 * @param dictionary A dictionary mapping crimes to their occurrences.
 * @return The name of the crime that has been committed more than 10 times.
 */
fun breakOutOfLoop(dictionary: Map<String, Int>): String {

    var crimeName = ""
    for ((crime, occurrences) in dictionary) {
        if (occurrences > 10) {
            // Write code here to break out of the loop
            crimeName = crime
            break
        }
    }
    return crimeName
}