STMicroelectronics interview question

Write and Simulate System Verilog Codes.