Check if All A's Appears Before All B's - Practice Coding | SlaveCode