Pergunta de entrevista da empresa KONE

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