Microsoft interview question

find the longest contiguous array