digital switch ? with arduino . how to do it

Are you familiar with switches and outputs?

.