Function to calculate maximum difference between adjacent elements excluding every array element once
static void maxAdjacent ( int [ ] arr , int N ) { List < int > res = new List < int > ( ) ; int arr_max = Int32 . MinValue ;