/check-if-all-as-appears-before-all-bs/