Pregunta de entrevista de Heartdub

Find the longest subsequence in a string.