UVa 10100 - Longest Match

LCS