AMD interview question

coding question: find longest increasing subsequence in a given non-empty array