Switch Input to Arduino Serial to Arduino Serial Output Led High or Low.

Using the suggestion above, you can write either of the sketches and test them independently using the IDE's serial terminal. What have you tried so far?