結果 : find longest subsequence in array hackerrank solution