Length of longest subarray with increasing contiguous elements
Given an array arr[] of length N, the task is to find the length of the longest subarray which consists of consecutive numbers in increasing order, from the array. Examples: Input: arr[] = {2, 3, 4, 6, 7, 8, 9, 10}Output: 5Explanation: Subarray {6, 7, 8, 9, 10} is the longest subarray satisfying the