A) Design a sequence detector using D flip-flops to detect thesequence 1101with the overlapping permitted.
B) Design a synchronous counter using J-K flip-flops that hasthe following sequence:- 000,010,101,110 and repeat. The undesired states 001,011,100 and 111 must always go to 000on thenext clock pulse.