/**
 * Takes in two lists of integers, 'list1' and 'list2', and returns a list containing the common elements between them.
 */
fun findCommonElements(list1: List<Int>, list2: List<Int>): List<Int> {

    val commonElements = mutableListOf<Int>()
    for (element1 in list1) {
        for (element2 in list2) {
            if (element1 == element2) {
                commonElements.add(element1)
            }
        }
    }
    return commonElements
}
/**
 * Takes in two lists of integers, 'list1' and 'list2', and returns a list containing the common elements between them.
 */
fun findCommonElements(list1: List<Int>, list2: List<Int>): List<Int> {
/**
 * Takes in two lists of integers, 'list1' and 'list2', and returns a list containing the common elements between them.
 */
fun findCommonElements(list1: List<Int>, list2: List<Int>): List<Int> {

    val commonElements = mutableListOf<Int>()
    for (element1 in list1) {
        for (element2 in list2) {
            if (element1 == element2) {
                commonElements.add(element1)
            }
        }
    }
    return commonElements
}