/**
 * Given a key and a dictionary, find the value corresponding to the key and break the loop.
 *
 * @param key The key to search for in the dictionary.
 * @param dictionary The dictionary to search for the key in.
 * @return The value associated with the specified key.
 */
fun findValueAndBreak(key: String, dictionary: Map<String, String>): String? {

    var value: String? = null
    for ((k, v) in dictionary) {
        if (k == key) {
            value = v
            break  // Break the loop when key is found
        }
    }
    return value
}
/**
 * Given a key and a dictionary, find the value corresponding to the key and break the loop.
 *
 * @param key The key to search for in the dictionary.
 * @param dictionary The dictionary to search for the key in.
 * @return The value associated with the specified key.
 */
fun findValueAndBreak(key: String, dictionary: Map<String, String>): String? {
/**
 * Given a key and a dictionary, find the value corresponding to the key and break the loop.
 *
 * @param key The key to search for in the dictionary.
 * @param dictionary The dictionary to search for the key in.
 * @return The value associated with the specified key.
 */
fun findValueAndBreak(key: String, dictionary: Map<String, String>): String? {

    var value: String? = null
    for ((k, v) in dictionary) {
        if (k == key) {
            value = v
            break  // Break the loop when key is found
        }
    }
    return value
}