NVIDIA interview question

MUX question and coding question