Xilinx Interview Question

How do you design a priority encoder