Optiver interview question

VHDL code snippets and describing what the program does