Arm Interview Question

They asked to code using Verilog.