Intel Corporation Interview Question

Design a sequence detector