OpenFive Interview Question

Write Verilog codes for given questions