Juniper Networks Interview Question

Draw a sequence detector and findout the equations for flipflops.