Frage im Vorstellungsgespräch bei KONE

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