Fractal Interview Question

Matrix based question