Konrad Group interview question

Read the following javascript/java/kotlin (your choice) code and tell us the output? just know ur basic map filter and callback fucntions