Longest Repeated Subsequence problem
techiedelight.com