BlackBuck Interview Question

Boolean matrix problem.