Question: What is the output of the following Kotlin code snippet?
fun main() {
val list = mutableListOf(1, 2, 3, 4, 5)
val result = list.fold(5) { acc, num -> acc * num }
println(result)
}
How to avoid Salary (Package) question from relatives? What should be the best answer? Even if you answer it's decent - how to handle the follow up question?