private int factorial(int n) {
        int result = 1;
        for ( int i = 1; i <= n; i++) {
            result = result*i;
        }
        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