/**
 * This function takes two lists as input and returns a list of elements that are common to both lists.
 */
fun findCommonElements(list1: List<Int>, list2: List<Int>): List<Int> {

    val commonElements = mutableListOf<Int>()

    for (i in list1.indices) {
        if (list1[i] % 2 == 0) {
            continue
        } else if (list1[i] == 5) {
            break
        }
        for (j in list2.indices) {
            if (list1[i] == list2[j]) {
                commonElements.add(list1[i])
                break
            }
        }
    }

    return commonElements
}
/**
 * This function takes two lists as input and returns a list of elements that are common to both lists.
 */
fun findCommonElements(list1: List<Int>, list2: List<Int>): List<Int> {
/**
 * This function takes two lists as input and returns a list of elements that are common to both lists.
 */
fun findCommonElements(list1: List<Int>, list2: List<Int>): List<Int> {

    val commonElements = mutableListOf<Int>()

    for (i in list1.indices) {
        if (list1[i] % 2 == 0) {
            continue
        } else if (list1[i] == 5) {
            break
        }
        for (j in list2.indices) {
            if (list1[i] == list2[j]) {
                commonElements.add(list1[i])
                break
            }
        }
    }

    return commonElements
}