Apple Interview Question

How to implement a priority encoder in Verilog?