I have some class objects
class City (val name: String) {
var degrees: Int = 0
}
val city1 = City("city1")
city1.degrees = 10
val city2 = City("city2")
city2.degrees = 20
val city3 = City("city3")
city3.degrees = 30
How to find min/max of degrees of 3 cities and return it's object?