Pregunta de entrevista de EY

To find longest Subsequence in python.