Function to generate the permutation of the first N natural numbers having sum of absolute difference between element and indices as minimum
import java . util . * ; class GFG { static void findPermutation ( int N ) {