/**
 * Given two lists, lst1 and lst2, this function replaces all the elements in lst1 that are identical to any element in lst2 with the string 'REPLACED'. The function returns the modified lst1.
 *
 * @param lst1 A list of elements.
 * @param lst2 A list of elements.
 * @return The modified lst1 with replaced elements.
 */
fun replaceValues(lst1: List<String>, lst2: List<String>): List<String> {

    // Modify the elements in lst1 that are identical to any element in lst2 with 'REPLACED'
    return lst1.map { if (it in lst2) "REPLACED" else it }
}
/**
 * Given two lists, lst1 and lst2, this function replaces all the elements in lst1 that are identical to any element in lst2 with the string 'REPLACED'. The function returns the modified lst1.
 *
 * @param lst1 A list of elements.
 * @param lst2 A list of elements.
 * @return The modified lst1 with replaced elements.
 */
fun replaceValues(lst1: List<String>, lst2: List<String>): List<String> {
/**
 * Given two lists, lst1 and lst2, this function replaces all the elements in lst1 that are identical to any element in lst2 with the string 'REPLACED'. The function returns the modified lst1.
 *
 * @param lst1 A list of elements.
 * @param lst2 A list of elements.
 * @return The modified lst1 with replaced elements.
 */
fun replaceValues(lst1: List<String>, lst2: List<String>): List<String> {

    // Modify the elements in lst1 that are identical to any element in lst2 with 'REPLACED'
    return lst1.map { if (it in lst2) "REPLACED" else it }
}