if hashMap already has the value , means we already have subarray with the sum - so stop
if ( hashMap . containsKey ( cur_sum - sum ) ) { start = hashMap . get ( cur_sum - sum ) + 1 ; end = i ; break ; }