public int[] getNextInt(int []input){
        int result[] = new int[input.length];
        boolean flag = getNextInt(input,result,0);
        if(flag){
            return result;
        }else{
            result = new int[input.length+1];
            fillRestOfArray(result, 0, (input[0] +1)%9);
            return result;
        }
    }
http://www.careercup.com/question?id=4857362737266688
Test cases : 
6 2 3 -> 6 7 8
1 2 3 -> 1 2 4
1,7,9 -> 1,8,9
1,8,9 -> 2,3,4
9,8,7 -> 1,2,3,4
2,6   -> 2,7
src/com/interview/number/SmallestNumberGreaterThanGiveNumberIncreasingSequence.java