SG Micro interview question

Verilog coding and basic logic gate knowledge