HCLTech Interview Question

Verilog code for basic circuits