Find longest increasing contiguous subarray | Google Interview Question