Cyware interview question

Longest Common Subsequence Without Repeating Strings