Xilinx interview question

How do you design a priority encoder