private void fillRestOfArray(int result[],int pos,int val){
        for(int i=pos; i < result.length ; i++){
            result[i] = val;
            val++;
        }
    }
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