NVIDIA interview question

Basic logic design