Counting Isolated Cookie Jars

Company: Apple_27oct

Difficulty: easy