/**
 * Given a dictionary, remove all items whose keys are odd numbers.
 *
 * @param dictionary Input dictionary to be modified.
 * @return Modified dictionary.
 */
fun removeOddNumbers(dictionary: MutableMap<Int, Any>): MutableMap<Int, Any> {

    val keysToRemove = mutableListOf<Int>()
    for (key in dictionary.keys) {
        if (key % 2 != 0) {
            keysToRemove.add(key)
        }
    }

    for (key in keysToRemove) {
        dictionary.remove(key)
    }

    return dictionary
}
/**
 * Given a dictionary, remove all items whose keys are odd numbers.
 *
 * @param dictionary Input dictionary to be modified.
 * @return Modified dictionary.
 */
fun removeOddNumbers(dictionary: MutableMap<Int, Any>): MutableMap<Int, Any> {
/**
 * Given a dictionary, remove all items whose keys are odd numbers.
 *
 * @param dictionary Input dictionary to be modified.
 * @return Modified dictionary.
 */
fun removeOddNumbers(dictionary: MutableMap<Int, Any>): MutableMap<Int, Any> {

    val keysToRemove = mutableListOf<Int>()
    for (key in dictionary.keys) {
        if (key % 2 != 0) {
            keysToRemove.add(key)
        }
    }

    for (key in keysToRemove) {
        dictionary.remove(key)
    }

    return dictionary
}