Qualcomm Interview Question

Write a sequence detector that can detect the sequence 1011