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

    val common = mutableListOf<Any>()

    for (element1 in list1) {
        for (element2 in list2) {
            if (element1 == element2) {
                common.add(element1)
                break
            }
        }
    }

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

    val common = mutableListOf<Any>()

    for (element1 in list1) {
        for (element2 in list2) {
            if (element1 == element2) {
                common.add(element1)
                break
            }
        }
    }

    return common
}