Apple Interview Question

Code an arbiter in verilog.