/**
 * This exercise requires the physical therapist to remove elements from one list and concatenate the remaining elements.
 *
 * The function should take two lists as arguments: list1 and list2. It should remove elements from list1 that are also present in list2 and then concatenate the remaining elements.
 *
 * @param list1 A list of elements
 * @param list2 A list of elements
 * @return A new list containing the concatenated elements after removing elements from list1 that are also present in list2.
 */
fun removeElementsFromList(list1: MutableList<String>, list2: List<String>): String {

    // Removing elements from list1 that are present in list2
    list1.removeAll(list2)

    // Concatenating the remaining elements
    val result = list1.joinToString("")

    return result
}
/**
 * This exercise requires the physical therapist to remove elements from one list and concatenate the remaining elements.
 *
 * The function should take two lists as arguments: list1 and list2. It should remove elements from list1 that are also present in list2 and then concatenate the remaining elements.
 *
 * @param list1 A list of elements
 * @param list2 A list of elements
 * @return A new list containing the concatenated elements after removing elements from list1 that are also present in list2.
 */
fun removeElementsFromList(list1: MutableList<String>, list2: List<String>): String {
/**
 * This exercise requires the physical therapist to remove elements from one list and concatenate the remaining elements.
 *
 * The function should take two lists as arguments: list1 and list2. It should remove elements from list1 that are also present in list2 and then concatenate the remaining elements.
 *
 * @param list1 A list of elements
 * @param list2 A list of elements
 * @return A new list containing the concatenated elements after removing elements from list1 that are also present in list2.
 */
fun removeElementsFromList(list1: MutableList<String>, list2: List<String>): String {

    // Removing elements from list1 that are present in list2
    list1.removeAll(list2)

    // Concatenating the remaining elements
    val result = list1.joinToString("")

    return result
}