/**
 * You are given a list and an element. Your task is to modify the list by adding the element to it.
 *
 * Instructions:
 * 1. Use a Kotlin list method to add the element to the end of the list.
 * 2. Return the modified list.
 *
 * @param lst A list of elements.
 * @param element The element to be added to the list.
 * @return The modified list after adding the element.
 */
fun addElementToList(lst: MutableList<Any>, element: Any): List<Any> {

    // Add the element to the end of the list using a list method
    lst.add(element)
    
    // Return the modified list
    return lst
}
/**
 * You are given a list and an element. Your task is to modify the list by adding the element to it.
 *
 * Instructions:
 * 1. Use a Kotlin list method to add the element to the end of the list.
 * 2. Return the modified list.
 *
 * @param lst A list of elements.
 * @param element The element to be added to the list.
 * @return The modified list after adding the element.
 */
fun addElementToList(lst: MutableList<Any>, element: Any): List<Any> {
/**
 * You are given a list and an element. Your task is to modify the list by adding the element to it.
 *
 * Instructions:
 * 1. Use a Kotlin list method to add the element to the end of the list.
 * 2. Return the modified list.
 *
 * @param lst A list of elements.
 * @param element The element to be added to the list.
 * @return The modified list after adding the element.
 */
fun addElementToList(lst: MutableList<Any>, element: Any): List<Any> {

    // Add the element to the end of the list using a list method
    lst.add(element)
    
    // Return the modified list
    return lst
}