KONE Interview Question

What is the purpose of this Python code (about lamda function with built-in filter function)