Find sub-array whose sum equal to a given number