Modified LCS problem to exculde auxilary data strucure to hold O(m+n) for printing letters