Optiver interview question

General verilog code questions with sample code.