Texas Instruments Interview Question

Was asked to design a comparator and a shift register using flip-flops.