Again LCS

You are given two permutations of the numbers from 1-N called P1 and P2. You are also given two inte…

Click here to read the complete problem statement.

If you need help solving this problem, mention your approach and ask specific questions. Please avoid sharing your code and asking the Community to figure out “what’s wrong”.