LinkedIn Interview Question

Matrix manipulation