/**
 * This function takes a list of artist names and an element.
 * It removes all occurrences of the element from the list and returns the modified list.
 */
fun removeElement(artistList: List<String>, element: String): List<String> {

    val resultList = mutableListOf<String>()

    // Iterate over each item in the artistList
    for (artist in artistList) {
        // Check if the artist is not equal to the element
        if (artist != element) {
            // Append the artist to the resultList
            resultList.add(artist)
        }
    }

    return resultList
}
/**
 * This function takes a list of artist names and an element.
 * It removes all occurrences of the element from the list and returns the modified list.
 */
fun removeElement(artistList: List<String>, element: String): List<String> {
/**
 * This function takes a list of artist names and an element.
 * It removes all occurrences of the element from the list and returns the modified list.
 */
fun removeElement(artistList: List<String>, element: String): List<String> {

    val resultList = mutableListOf<String>()

    // Iterate over each item in the artistList
    for (artist in artistList) {
        // Check if the artist is not equal to the element
        if (artist != element) {
            // Append the artist to the resultList
            resultList.add(artist)
        }
    }

    return resultList
}