/**
 * Given two lists of strings, return a list of elements that are common in both lists.
 *
 * @param list1 The first list of strings.
 * @param list2 The second list of strings.
 * @return A list of strings that are common in both list1 and list2.
 */
fun findCommonElements(list1: List<String>, list2: List<String>): List<String> {

    val commonElements = mutableListOf<String>()
    for (element in list1) {
        if (element in list2) {
            commonElements.add(element)
        }
    }
    return commonElements
}
/**
 * Given two lists of strings, return a list of elements that are common in both lists.
 *
 * @param list1 The first list of strings.
 * @param list2 The second list of strings.
 * @return A list of strings that are common in both list1 and list2.
 */
fun findCommonElements(list1: List<String>, list2: List<String>): List<String> {
/**
 * Given two lists of strings, return a list of elements that are common in both lists.
 *
 * @param list1 The first list of strings.
 * @param list2 The second list of strings.
 * @return A list of strings that are common in both list1 and list2.
 */
fun findCommonElements(list1: List<String>, list2: List<String>): List<String> {

    val commonElements = mutableListOf<String>()
    for (element in list1) {
        if (element in list2) {
            commonElements.add(element)
        }
    }
    return commonElements
}