Have an array we have to find longest subarray with consecutive numbers
ex [4,5,34,33,32,11,10,31]
answer is [31,32,33,34]