/**
 * This function takes two lists as input and returns a new list containing the common elements between list1 and list2.
 * The function uses the 'AND' operator to compare each element of list1 with each element of list2 to find the common elements.
 */
fun findCommonElements(list1: List<Any>, list2: List<Any>): List<Any> {

    val commonElements = mutableListOf<Any>()

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

    return commonElements
}
/**
 * This function takes two lists as input and returns a new list containing the common elements between list1 and list2.
 * The function uses the 'AND' operator to compare each element of list1 with each element of list2 to find the common elements.
 */
fun findCommonElements(list1: List<Any>, list2: List<Any>): List<Any> {
/**
 * This function takes two lists as input and returns a new list containing the common elements between list1 and list2.
 * The function uses the 'AND' operator to compare each element of list1 with each element of list2 to find the common elements.
 */
fun findCommonElements(list1: List<Any>, list2: List<Any>): List<Any> {

    val commonElements = mutableListOf<Any>()

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

    return commonElements
}