public int[] find(int n, int m) {
        boolean used[] = new boolean[n];
        int result[] = new int[n];
        find(result, used, 0, n, m);
        return result;
    }
@author Tushar Roy
Date 01/21/2016

Given a number n, find mth value in permutation of array consisting of [1..n] values.
mth is defined by lexicographical order.
src/com/interview/number/MthNumberInNSizeArray.java