Create longestseq.cpp

It find the length of the longest  contiguous sequence in a vector array.