Find the Longest subarray such that difference between adjacent elements is K
Given an array arr[] of size N, and integer K. The task is to find the longest subarray with the difference between adjacent elements as K. Examples: Input: arr[] = { 5, 5, 5, 10, 8, 6, 12, 13 }, K =1Output: {12, 13}Explanation: This is the longest subarray with difference between adjacents as 1. In