Codechef Problem - HOLES

Accepted - codechef.com