• + 0 comments

    Because in this example prefix BAA contains more 'A's than 'B's. You can rephrase the description as whether you count all 'A's and 'B's from the start to the right or from the end to the left, there shouldn't be more 'A's at any point.