/**
 * Given a dictionary [data], iterate over its items and print the key-value pairs.
 *
 * @param data dictionary containing key-value pairs
 */
fun iteratingOverDictionary(data: Map<*, *>) {

    if (data == null || data !is Map<*, *>) {
        println("Invalid data format! Please provide a dictionary.")
        return
    }

    for ((key, value) in data) {
        println("$key : $value")
    }
}
/**
 * Given a dictionary [data], iterate over its items and print the key-value pairs.
 *
 * @param data dictionary containing key-value pairs
 */
fun iteratingOverDictionary(data: Map<*, *>) {
/**
 * Given a dictionary [data], iterate over its items and print the key-value pairs.
 *
 * @param data dictionary containing key-value pairs
 */
fun iteratingOverDictionary(data: Map<*, *>) {

    if (data == null || data !is Map<*, *>) {
        println("Invalid data format! Please provide a dictionary.")
        return
    }

    for ((key, value) in data) {
        println("$key : $value")
    }
}