/**
 * Given a dictionary, return a list of all the keys that have negative integer values.
 *
 * @param dictionary A dictionary containing positive and negative integer values.
 * @return A list of keys with negative integer values.
 *
 * Example:
 * val dictionary = mapOf('A' to -5, 'B' to 10, 'C' to 0, 'D' to -8, 'E' to 7)
 * findNegativeKeys(dictionary)
 * Output: ['A', 'D']
 */
fun findNegativeKeys(dictionary: Map<String, Int>): List<String> {

    val negativeKeys = mutableListOf<String>()
    for ((key, value) in dictionary) {
        if (value < 0) {
            negativeKeys.add(key)
        }
    }
    return negativeKeys
}
/**
 * Given a dictionary, return a list of all the keys that have negative integer values.
 *
 * @param dictionary A dictionary containing positive and negative integer values.
 * @return A list of keys with negative integer values.
 *
 * Example:
 * val dictionary = mapOf('A' to -5, 'B' to 10, 'C' to 0, 'D' to -8, 'E' to 7)
 * findNegativeKeys(dictionary)
 * Output: ['A', 'D']
 */
fun findNegativeKeys(dictionary: Map<String, Int>): List<String> {
/**
 * Given a dictionary, return a list of all the keys that have negative integer values.
 *
 * @param dictionary A dictionary containing positive and negative integer values.
 * @return A list of keys with negative integer values.
 *
 * Example:
 * val dictionary = mapOf('A' to -5, 'B' to 10, 'C' to 0, 'D' to -8, 'E' to 7)
 * findNegativeKeys(dictionary)
 * Output: ['A', 'D']
 */
fun findNegativeKeys(dictionary: Map<String, Int>): List<String> {

    val negativeKeys = mutableListOf<String>()
    for ((key, value) in dictionary) {
        if (value < 0) {
            negativeKeys.add(key)
        }
    }
    return negativeKeys
}