Qualcomm Interview Question

Write verilog for a counter, make a nand gate with muxes