/**
 * This function appends multiple new elements to a list based on the given parameters.
 *
 * @param n The number of new elements to append.
 * @param startVal The value of the first new element to append.
 * @param increment The increment value between each new element.
 * @return The list with the appended new elements.
 */
fun appendMultipleElements(n: Int, startVal: Int, increment: Int): List<Int> {

    val lst = mutableListOf<Int>()  // Initialize an empty list

    for (i in 0 until n) {
        // Append the new elements to the list using startVal and increment
        lst.add(startVal + (i * increment))
    }

    return lst
}
/**
 * This function appends multiple new elements to a list based on the given parameters.
 *
 * @param n The number of new elements to append.
 * @param startVal The value of the first new element to append.
 * @param increment The increment value between each new element.
 * @return The list with the appended new elements.
 */
fun appendMultipleElements(n: Int, startVal: Int, increment: Int): List<Int> {
/**
 * This function appends multiple new elements to a list based on the given parameters.
 *
 * @param n The number of new elements to append.
 * @param startVal The value of the first new element to append.
 * @param increment The increment value between each new element.
 * @return The list with the appended new elements.
 */
fun appendMultipleElements(n: Int, startVal: Int, increment: Int): List<Int> {

    val lst = mutableListOf<Int>()  // Initialize an empty list

    for (i in 0 until n) {
        // Append the new elements to the list using startVal and increment
        lst.add(startVal + (i * increment))
    }

    return lst
}