/**
 * Given two dictionaries, find the common elements based on their index values.
 *
 * @param d1 First dictionary containing the elements.
 * @param d2 Second dictionary containing the elements.
 * @return A list of shared elements between the two dictionaries.
 */
fun findSharedElements(d1: Map<Int, Any>, d2: Map<Int, Any>): List<List<Any>> {

    val sharedElements = mutableListOf<List<Any>>()
    for (index in d1.keys) {
        if (index in d2.keys) {
            sharedElements.add(listOf(d1[index]!!, d2[index]!!))
        }
    }
    return sharedElements
}
/**
 * Given two dictionaries, find the common elements based on their index values.
 *
 * @param d1 First dictionary containing the elements.
 * @param d2 Second dictionary containing the elements.
 * @return A list of shared elements between the two dictionaries.
 */
fun findSharedElements(d1: Map<Int, Any>, d2: Map<Int, Any>): List<List<Any>> {
/**
 * Given two dictionaries, find the common elements based on their index values.
 *
 * @param d1 First dictionary containing the elements.
 * @param d2 Second dictionary containing the elements.
 * @return A list of shared elements between the two dictionaries.
 */
fun findSharedElements(d1: Map<Int, Any>, d2: Map<Int, Any>): List<List<Any>> {

    val sharedElements = mutableListOf<List<Any>>()
    for (index in d1.keys) {
        if (index in d2.keys) {
            sharedElements.add(listOf(d1[index]!!, d2[index]!!))
        }
    }
    return sharedElements
}