Challenge 3: Lambdas with map and filter — Solution fun main() { val numbers = listOf(1, 2, 3, 4, 5, 6, 7, 8, 9, 10) val result = numbers .filter { it % 2 == 0 } .map { it * it } println(result) } /* Output: [4, 16, 36, 64, 100] Notes: - filter { it % 2 == 0 } keeps only even numbers: [2, 4, 6, 8, 10]. - map { it * it } squares each surviving element: [4, 16, 36, 64, 100]. - Both lambdas use the implicit "it" since each takes exactly one parameter — no need to name it explicitly. - The two calls are chained directly (filter's result flows straight into map), which is the normal way to compose collection operators in Kotlin. */