Apple interview question

How to implement a priority encoder in Verilog?