Qualcomm Interview Question

Given an input and out design a digital circuit using Flipflops