/**
 * This function takes in two lists and returns a new list containing the common elements between the two lists.
 *
 * @param list1 First list containing elements of any data type.
 * @param list2 Second list containing elements of any data type.
 * @return A list containing the common elements between list1 and list2.
 *
 * Example:
 * commonElements(listOf(1, 2, 3, 4, 5), listOf(4, 5, 6, 7, 8)) -> [4, 5]
 */
fun commonElements(list1: List<Any>, list2: List<Any>): List<Any> {

    val commonList = mutableListOf<Any>()

    // Write your code here

    return commonList
}
/**
 * This function takes in two lists and returns a new list containing the common elements between the two lists.
 *
 * @param list1 First list containing elements of any data type.
 * @param list2 Second list containing elements of any data type.
 * @return A list containing the common elements between list1 and list2.
 *
 * Example:
 * commonElements(listOf(1, 2, 3, 4, 5), listOf(4, 5, 6, 7, 8)) -> [4, 5]
 */
fun commonElements(list1: List<Any>, list2: List<Any>): List<Any> {
/**
 * This function takes in two lists and returns a new list containing the common elements between the two lists.
 *
 * @param list1 First list containing elements of any data type.
 * @param list2 Second list containing elements of any data type.
 * @return A list containing the common elements between list1 and list2.
 *
 * Example:
 * commonElements(listOf(1, 2, 3, 4, 5), listOf(4, 5, 6, 7, 8)) -> [4, 5]
 */
fun commonElements(list1: List<Any>, list2: List<Any>): List<Any> {

    val commonList = mutableListOf<Any>()

    // Write your code here

    return commonList
}