JPMorganChase interview question

longest increasing subsequence in a array