https://hack.codingblocks.com/contests/c/452/277
code https://ide.codingblocks.com/#/s/15024
it passes lots of my own sample cases but still not passes the test cases of the problem
approach:
using bottom up dp, created dp table
and then recurrsed the table from bottom right to get the lcs