text: Function to calculate maximum difference between adjacent elements excluding every array element once
code: static void maxAdjacent ( int [ ] arr , int N ) { ArrayList < Integer > res = new ArrayList < Integer > ( ) ;