No need for transistors
You can controll it with logic gates or with switches as shown
I previously published circuits about making all the gates using not gate so i can make any gate with just resistor !!
Ok .. I tried it now and i failed .. See the comments