NAUTO interview question

Given an integer array as the input , write a function to return the longest increasing sub-array.