SPP recursive sequence

some of the test cases are giving wrong answer.
ide: https://ide.codingblocks.com/s/212534

not getting how to build transformation matrix

@Vishal123
Please see the solution here

still the last test case is not passing

@Vishal123
Thanks for pointing it out
I’ve made the requisite changes
Please see this updated code https://ide.codingblocks.com/s/225916