/**
 * Given a dictionary, delete all items whose keys are odd numbers.
 *
 * @param dictionary The dictionary to be modified.
 * @return The updated dictionary.
 */
fun deleteOddValues(dictionary: MutableMap<Int, Any>): MutableMap<Int, Any> {

    val keysToRemove = dictionary.keys.filter { it % 2 != 0 }
    keysToRemove.forEach { dictionary.remove(it) }
    return dictionary
}
/**
 * Given a dictionary, delete all items whose keys are odd numbers.
 *
 * @param dictionary The dictionary to be modified.
 * @return The updated dictionary.
 */
fun deleteOddValues(dictionary: MutableMap<Int, Any>): MutableMap<Int, Any> {
/**
 * Given a dictionary, delete all items whose keys are odd numbers.
 *
 * @param dictionary The dictionary to be modified.
 * @return The updated dictionary.
 */
fun deleteOddValues(dictionary: MutableMap<Int, Any>): MutableMap<Int, Any> {

    val keysToRemove = dictionary.keys.filter { it % 2 != 0 }
    keysToRemove.forEach { dictionary.remove(it) }
    return dictionary
}