Aviva Links interview question

For a sequence detector, write the code in UVM.