Optiver Interview Question

VHDL code snippets and describing what the program does