Intel Corporation Interview Question

Draw the circuit base on the coding provided