Qualcomm interview question

Write a sequence detector that can detect the sequence 1011