add longestConsective() for Longest Consective Sequence