Greatest Common Increasing Subsequence

HDU - 1423