Philips Interview Question

Having a table in web UI, which have a filtering option. How do you design such a code to handle it?