Pergunta de entrevista da empresa NVIDIA

finding the sub array in array when it's max - min value is he bigger from all the sub arrays in O(n)