Adobe Interview Question

return the longest subarray of consecutive numbers