(Parsing & state machine) An array of integers contains 20-elements.
Each element is either l'or '0'. A parsing program needs to find the sequence "101' in the array. The sequence may occur repeatedly in the array.
Draw the state machine representing the program.
Write down the relevant portion of the main function of this program to implement the state machine (only the first and the last state) so that it outputs the number of such sequence (101') in the array.