/**
 * This function takes two lists as input and returns a list containing the common elements present in both input lists.
 *
 * @param list1 The first input list.
 * @param list2 The second input list.
 * @return The list containing the common elements.
 */
fun commonElements(list1: List<Any>, list2: List<Any>): List<Any> {

    val common = list1.filter { it in list2 }
    return common
}
/**
 * This function takes two lists as input and returns a list containing the common elements present in both input lists.
 *
 * @param list1 The first input list.
 * @param list2 The second input list.
 * @return The list containing the common elements.
 */
fun commonElements(list1: List<Any>, list2: List<Any>): List<Any> {
/**
 * This function takes two lists as input and returns a list containing the common elements present in both input lists.
 *
 * @param list1 The first input list.
 * @param list2 The second input list.
 * @return The list containing the common elements.
 */
fun commonElements(list1: List<Any>, list2: List<Any>): List<Any> {

    val common = list1.filter { it in list2 }
    return common
}