/**
 * Given two lists, find the common elements between them.
 *
 * @param list1 The first list.
 * @param list2 The second list.
 * @return A list containing the common elements between list1 and list2.
 */
fun findCommonElements(list1: List<Int>, list2: List<Int>): List<Int> {

    // Find the common elements
    val commonElements = mutableListOf<Int>()
    
    // Find the common elements between the two lists
    for (num in list1) {
        if (num in list2) {
            commonElements.add(num)
        }
    }
    
    return commonElements
}
/**
 * Given two lists, find the common elements between them.
 *
 * @param list1 The first list.
 * @param list2 The second list.
 * @return A list containing the common elements between list1 and list2.
 */
fun findCommonElements(list1: List<Int>, list2: List<Int>): List<Int> {
/**
 * Given two lists, find the common elements between them.
 *
 * @param list1 The first list.
 * @param list2 The second list.
 * @return A list containing the common elements between list1 and list2.
 */
fun findCommonElements(list1: List<Int>, list2: List<Int>): List<Int> {

    // Find the common elements
    val commonElements = mutableListOf<Int>()
    
    // Find the common elements between the two lists
    for (num in list1) {
        if (num in list2) {
            commonElements.add(num)
        }
    }
    
    return commonElements
}