Exercise on the digital chain

Hello 

Who can help me with this exercise?