Rivos Interview Question

Write a verilog code to detect the pattern 1011