Fill a Special Grid

Fill a Special Grid - Coding Problem | K5kC