Count Contiguous Batches Free Of Any Forbidden Pair

Company: Kickdrum_8oct

Difficulty: medium