2124. Check if All A's Appears Before All B's Updated: 2024-03-12 1 min read Algorithms , LeetCode On This PageLeetCode problem 2124class Solution: def checkString(self, s: str) -> bool: return "ba" not in s