public static void main(String args[]){
        SubarrayWithGivenSum sgs = new SubarrayWithGivenSum();
        int input[] = {6,3,9,11,1,3,5};
        System.out.println(sgs.findSubArray(input,15));
    }
http://www.geeksforgeeks.org/find-subarray-with-given-sum/
src/com/interview/array/SubarrayWithGivenSum.java