boolean array puzzle