/**
 * This exercise requires the historian to append an element to a given list, while also handling any potential errors that may arise during the process.
 *
 * @param lst The original list to which the element should be appended.
 * @param element The element that should be appended to the list.
 * @return The updated list after appending the element.
 */
fun appendToList(lst: MutableList<Any>, element: Any): List<Any> {

    try {
        lst.add(element)
        return lst
    } catch (e: Exception) {
        // Your code here - This exercise should require the historian to figure out the specific exception to catch and handle.
        // Placeholder for solution
        return lst
    }
}
/**
 * This exercise requires the historian to append an element to a given list, while also handling any potential errors that may arise during the process.
 *
 * @param lst The original list to which the element should be appended.
 * @param element The element that should be appended to the list.
 * @return The updated list after appending the element.
 */
fun appendToList(lst: MutableList<Any>, element: Any): List<Any> {
/**
 * This exercise requires the historian to append an element to a given list, while also handling any potential errors that may arise during the process.
 *
 * @param lst The original list to which the element should be appended.
 * @param element The element that should be appended to the list.
 * @return The updated list after appending the element.
 */
fun appendToList(lst: MutableList<Any>, element: Any): List<Any> {

    try {
        lst.add(element)
        return lst
    } catch (e: Exception) {
        // Your code here - This exercise should require the historian to figure out the specific exception to catch and handle.
        // Placeholder for solution
        return lst
    }
}