MAQ Software Interview Question

1) Series sum 2)Longest common subsequence