Check if All A's Appears Before All B's - DSA Problem | Talentd