kotlin list add

// Step 1: Create a mutable list of type Int
val myList: MutableList<Int> = mutableListOf()

// Step 2: Add elements to the list using the add() function
myList.add(5)
myList.add(10)
myList.add(15)

// Step 3: Print the original list
println("Original List: $myList")

// Step 4: Add an element at a specific index (e.g., index 1)
myList.add(1, 25)

// Step 5: Print the updated list
println("Updated List: $myList")