Verily interview question

Find longest consecutive list from an array input.