Set states according to the input characters in the string and the rule defined in the description . If current character is [ A - Z ] . Set current state as 0.
if string [ index ] >= ' A ' and string [ index ] <= ' Z ' : NEW_LINE INDENT curr_state = 0 NEW_LINE DEDENT