PointClickCare Interview Question

Whats the length of longest consecutive substring in an unsorted array.