NVIDIA Interview Question

How to implement gates with mux