iOS Interview - Leetcode 128. Longest Consecutive Sequence

Leetcode: 128. Longest Consecutive Sequence Naive Solution Primary idea: Sort the array, remove duplicated elements then iterate through the…