finish longest consective sequence