/**
 * This function updates the list of books by appending new elements.
 *
 * @param books A list of books currently available in the library.
 * @param additionalBooks A list of new books to be added to the library.
 * @return A list containing the updated book collection.
 */
fun updateBooks(books: List<String>, additionalBooks: List<String>): List<String> {

    val selectedBooks = books.subList(0, 3).toMutableList()
    selectedBooks.addAll(additionalBooks)
    return selectedBooks
}
/**
 * This function updates the list of books by appending new elements.
 *
 * @param books A list of books currently available in the library.
 * @param additionalBooks A list of new books to be added to the library.
 * @return A list containing the updated book collection.
 */
fun updateBooks(books: List<String>, additionalBooks: List<String>): List<String> {
/**
 * This function updates the list of books by appending new elements.
 *
 * @param books A list of books currently available in the library.
 * @param additionalBooks A list of new books to be added to the library.
 * @return A list containing the updated book collection.
 */
fun updateBooks(books: List<String>, additionalBooks: List<String>): List<String> {

    val selectedBooks = books.subList(0, 3).toMutableList()
    selectedBooks.addAll(additionalBooks)
    return selectedBooks
}