Texas Instruments Interview Question

shift register problem