Longest common subsequence challenge solved