EY Interview Question

To find longest Subsequence in python.