/**
 * Given a nested dictionary and a list of keys, find the value associated with the keys.
 */
fun findNestedValue(dictionary: Map<String, Any>, keys: List<String>): Any {

    var currentDict = dictionary

    for (key in keys) {
        try {
            currentDict = currentDict[key] as Map<String, Any>
        } catch (e: ClassCastException) {
            return "Key not found!"
        }
    }

    return currentDict
}
/**
 * Given a nested dictionary and a list of keys, find the value associated with the keys.
 */
fun findNestedValue(dictionary: Map<String, Any>, keys: List<String>): Any {
/**
 * Given a nested dictionary and a list of keys, find the value associated with the keys.
 */
fun findNestedValue(dictionary: Map<String, Any>, keys: List<String>): Any {

    var currentDict = dictionary

    for (key in keys) {
        try {
            currentDict = currentDict[key] as Map<String, Any>
        } catch (e: ClassCastException) {
            return "Key not found!"
        }
    }

    return currentDict
}