/**
 * Given a list of names and a list of ages, create a dictionary where the names are the keys and the ages are the values.
 *
 * @param names A list of strings representing names.
 * @param ages A list of integers representing ages.
 * @return A dictionary with names as keys and ages as values.
 */
fun createDictionary(names: List<String>, ages: List<Int>): Map<String, Any> {

    val dictionary = mutableMapOf<String, Any>()
    for (i in names.indices) {
        if (names[i] !in dictionary) {
            dictionary[names[i]] = ages[i]
        } else {
            dictionary[names[i]] = "${dictionary[names[i]]}, ${ages[i]}"
        }
    }
    return dictionary
}
/**
 * Given a list of names and a list of ages, create a dictionary where the names are the keys and the ages are the values.
 *
 * @param names A list of strings representing names.
 * @param ages A list of integers representing ages.
 * @return A dictionary with names as keys and ages as values.
 */
fun createDictionary(names: List<String>, ages: List<Int>): Map<String, Any> {
/**
 * Given a list of names and a list of ages, create a dictionary where the names are the keys and the ages are the values.
 *
 * @param names A list of strings representing names.
 * @param ages A list of integers representing ages.
 * @return A dictionary with names as keys and ages as values.
 */
fun createDictionary(names: List<String>, ages: List<Int>): Map<String, Any> {

    val dictionary = mutableMapOf<String, Any>()
    for (i in names.indices) {
        if (names[i] !in dictionary) {
            dictionary[names[i]] = ages[i]
        } else {
            dictionary[names[i]] = "${dictionary[names[i]]}, ${ages[i]}"
        }
    }
    return dictionary
}