#720 Binary Sequence and Queries