/**
 * This function takes a list and an element, and returns a new list by appending the element to the input list.
 *
 * @param inputList The input list
 * @param element The element to be appended to the list
 * @return A new list with the element appended
 *
 * Example:
 * appendElementToList(listOf("a", "b", "c"), "d")
 * Output: ["a", "b", "c", "d"]
 */
fun appendElementToList(inputList: List<String>, element: String): List<String> {

    val newList = inputList.toMutableList()
    newList.add(element)
    return newList
}
/**
 * This function takes a list and an element, and returns a new list by appending the element to the input list.
 *
 * @param inputList The input list
 * @param element The element to be appended to the list
 * @return A new list with the element appended
 *
 * Example:
 * appendElementToList(listOf("a", "b", "c"), "d")
 * Output: ["a", "b", "c", "d"]
 */
fun appendElementToList(inputList: List<String>, element: String): List<String> {
/**
 * This function takes a list and an element, and returns a new list by appending the element to the input list.
 *
 * @param inputList The input list
 * @param element The element to be appended to the list
 * @return A new list with the element appended
 *
 * Example:
 * appendElementToList(listOf("a", "b", "c"), "d")
 * Output: ["a", "b", "c", "d"]
 */
fun appendElementToList(inputList: List<String>, element: String): List<String> {

    val newList = inputList.toMutableList()
    newList.add(element)
    return newList
}