Codechef HOLES submission