write code in kotlin that adds objects to a mutable list
Sure, here's an example code in Kotlin that creates a mutable list of objects and adds elements to it:
// Define a data class to represent the object
data class Person(val name: String, val age: Int)