 If X2 was instead grounded, LED1 would illuminate, meaning that LED5 cannot be lit by itself.This can be solved by utilizing the tri-state logic properties of microcontroller pins.Microcontroller pins generally have three states