Leetcode 2124. Check if All A's Appears Before All B's | Hello Interview