/**
 * Given two lists - one containing keys and the other containing values, create a dictionary.
 *
 * @param keys A list containing keys for the dictionary.
 * @param values A list containing values for the dictionary.
 * @return The dictionary created from the given lists.
 */
fun createDictionaryFromList(keys: List<Any>, values: List<Any>): Map<Any, Any> {

    // Check if the number of keys and values is same
    if (keys.size != values.size) {
        return mapOf("ERROR" to "Unequal number of keys and values provided.")
    }

    val dictionary = mutableMapOf<Any, Any>()

    // Iterate over the keys and values lists simultaneously
    for (i in keys.indices) {
        dictionary[keys[i]] = values[i]
    }

    return dictionary
}
/**
 * Given two lists - one containing keys and the other containing values, create a dictionary.
 *
 * @param keys A list containing keys for the dictionary.
 * @param values A list containing values for the dictionary.
 * @return The dictionary created from the given lists.
 */
fun createDictionaryFromList(keys: List<Any>, values: List<Any>): Map<Any, Any> {
/**
 * Given two lists - one containing keys and the other containing values, create a dictionary.
 *
 * @param keys A list containing keys for the dictionary.
 * @param values A list containing values for the dictionary.
 * @return The dictionary created from the given lists.
 */
fun createDictionaryFromList(keys: List<Any>, values: List<Any>): Map<Any, Any> {

    // Check if the number of keys and values is same
    if (keys.size != values.size) {
        return mapOf("ERROR" to "Unequal number of keys and values provided.")
    }

    val dictionary = mutableMapOf<Any, Any>()

    // Iterate over the keys and values lists simultaneously
    for (i in keys.indices) {
        dictionary[keys[i]] = values[i]
    }

    return dictionary
}