Amazon Interview Question

2d matrix of sorted boolean array