Amazon Interview Question

Algorithm questions related to matrix.