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

    val commonElements = mutableListOf<Any>()

    for (element in listA) {
        if (element in listB && element !in commonElements) {
            commonElements.add(element)
        }
    }

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

    val commonElements = mutableListOf<Any>()

    for (element in listA) {
        if (element in listB && element !in commonElements) {
            commonElements.add(element)
        }
    }

    return commonElements
}