sub array with given sum
copied code
test commi