Verily Interview Question

Find longest consecutive list from an array input.