NVIDIA interview question

Simple C++ programming. Verilog coding for sequence detector