Question d’entretien chez KONE

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