find sub array with given sum java