hi, I am still new to networking. Could anyone tell me why I able ping the gateway (10.0.1.1/29) and S1 (10.0.1.2/29 middle switch) from my PC but unable to ping the switch(10.0.1.3/29) where my pc(172.20.0.2) is Directly connected? thanks.

*all switches are in VLAN 99 and the PC on VLAN 10.