reading separate inputs on digital pins, storing order and replaying as output

what I want to do is output the inputs firstInput, secondInput, etc. in the order shown,

You may want that, but you have no "action" there. You may as well say "apple". Do you want to eat the apple, cook it, buy it, sell it etc?

Maybe you mean:

digitalWrite (firstInput, HIGH);

or:

digitalWrite (firstInput, LOW);

Then you are doing something with it.