public static void main(String args[]){
        RepeatingAndMissingNumber rmn = new RepeatingAndMissingNumber();
        int input[] = {3,1,2,4,6,8,2,7};
        System.out.println(rmn.findNumbers(input));
    }
http://www.geeksforgeeks.org/find-a-repeating-and-a-missing-number/
src/com/interview/array/RepeatingAndMissingNumber.java