Netlink interview question

How you can filter out element from a list?