Arm interview question

A question based upon Sequence detector