Saviynt Interview Question

Matrix based python problem solving question of medium complexity