Counting Alternating Subgrids - D. E. Shaw OA Question | OAHelper