/**
 * This function takes two lists as input and returns a new list containing the common elements between the two lists.
 *
 * @param list1 First list
 * @param list2 Second list
 * @return List of common elements between list1 and list2
 */
fun findCommonElements(list1: List<Any>, list2: List<Any>): List<Any> {

    val commonElements = mutableListOf<Any>()

    // Iterate through each element in list1
    for (element1 in list1) {
        // Check if element1 is in list2
        if (element1 in list2) {
            // Append element1 to commonElements
            commonElements.add(element1)
        }
    }

    return commonElements
}
/**
 * This function takes two lists as input and returns a new list containing the common elements between the two lists.
 *
 * @param list1 First list
 * @param list2 Second list
 * @return List of 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 new list containing the common elements between the two lists.
 *
 * @param list1 First list
 * @param list2 Second list
 * @return List of common elements between list1 and list2
 */
fun findCommonElements(list1: List<Any>, list2: List<Any>): List<Any> {

    val commonElements = mutableListOf<Any>()

    // Iterate through each element in list1
    for (element1 in list1) {
        // Check if element1 is in list2
        if (element1 in list2) {
            // Append element1 to commonElements
            commonElements.add(element1)
        }
    }

    return commonElements
}