/**
 * This function takes three lists as input and returns a list of common elements between them.
 */
fun findCommonElements(list1: List<Int>, list2: List<Int>, list3: List<Int>) {

    for (i in list1.indices) {
        for (j in list2.indices) {
            for (k in list3.indices) {
                if (list1[i] == list2[j] && list2[j] == list3[k]) {
                    println("Common Element: ${list1[i]}")
                }
            }
        }
    }
}
/**
 * This function takes three lists as input and returns a list of common elements between them.
 */
fun findCommonElements(list1: List<Int>, list2: List<Int>, list3: List<Int>) {
/**
 * This function takes three lists as input and returns a list of common elements between them.
 */
fun findCommonElements(list1: List<Int>, list2: List<Int>, list3: List<Int>) {

    for (i in list1.indices) {
        for (j in list2.indices) {
            for (k in list3.indices) {
                if (list1[i] == list2[j] && list2[j] == list3[k]) {
                    println("Common Element: ${list1[i]}")
                }
            }
        }
    }
}