The function should send every order belonging to the found customer. Find the receiver mistake.
kotlin
data class Customer(val id: String)
data class Order(val customerId: String)
fun notify(customer: Customer?, orders: List<Order>) {
customer?.let {
orders.filter { it.customerId == it.id }
.forEach { order -> send(order) }
}
}