/**
 * This function takes two lists as input and returns a tuple containing the common elements between them.
 *
 * @param list1 the first list
 * @param list2 the second list
 * @return A tuple containing the common elements between list1 and list2.
 */
fun findCommonElements(list1: List<Any>, list2: List<Any>): List<Any> {

    val commonElements = mutableListOf<Any>()

    // Iterate through every element in list1
    for (element in list1) {
        // Check if the element is also in list2
        if (element in list2) {
            // Add the common element to the commonElements list
            commonElements.add(element)
        }
    }

    return commonElements
}
/**
 * This function takes two lists as input and returns a tuple containing the common elements between them.
 *
 * @param list1 the first list
 * @param list2 the second list
 * @return A tuple containing the common elements between list1 and list2.
 */
fun findCommonElements(list1: List<Any>, list2: List<Any>): List<Any> {
/**
 * This function takes two lists as input and returns a tuple containing the common elements between them.
 *
 * @param list1 the first list
 * @param list2 the second list
 * @return A tuple containing the common elements between list1 and list2.
 */
fun findCommonElements(list1: List<Any>, list2: List<Any>): List<Any> {

    val commonElements = mutableListOf<Any>()

    // Iterate through every element in list1
    for (element in list1) {
        // Check if the element is also in list2
        if (element in list2) {
            // Add the common element to the commonElements list
            commonElements.add(element)
        }
    }

    return commonElements
}