Apple interview question

Write code for a UVC mimicing a memory . Reactive sequence in UVM