/**
 * This function takes three lists as input and returns a list containing the common elements
 * that are present in all three lists.
 */
fun findCommonElements(list1: List<Any>, list2: List<Any>, list3: List<Any>): List<Any> {

    val commonElements = mutableListOf<Any>()

    for (item1 in list1) {
        for (item2 in list2) {
            for (item3 in list3) {
                if (item1 == item2 && item2 == item3) {
                    commonElements.add(item1)
                }
            }
        }
    }

    return commonElements
}
/**
 * This function takes three lists as input and returns a list containing the common elements
 * that are present in all three lists.
 */
fun findCommonElements(list1: List<Any>, list2: List<Any>, list3: List<Any>): List<Any> {
/**
 * This function takes three lists as input and returns a list containing the common elements
 * that are present in all three lists.
 */
fun findCommonElements(list1: List<Any>, list2: List<Any>, list3: List<Any>): List<Any> {

    val commonElements = mutableListOf<Any>()

    for (item1 in list1) {
        for (item2 in list2) {
            for (item3 in list3) {
                if (item1 == item2 && item2 == item3) {
                    commonElements.add(item1)
                }
            }
        }
    }

    return commonElements
}