Arm Interview Question

A question based upon Sequence detector