Function to find lexicographically smallest permutation of [ 1 , A ] having B integers greater than all the previous elements
@ SuppressWarnings ( " unchecked " ) static void getSmallestArray ( int A , int B ) {