I have created a diagram to help me show you what I mean

Image

The code has to simulate the functionality of a digital circuit called multiplexer.

The Select line selects one of the n Inputs into the Output. All of the lines can be one or more bits.