Pergunta de entrevista da empresa EY

To find longest Subsequence in python.