LivSpace Interview Question

1) Problem Solving 2) DP Question on matrix