if curr_sum is equal to target sum we found a subarray starting from index 0 and ending at index i
if ( curr_sum == sum ) { cout << " Sum ▁ found ▁ between ▁ indexes ▁ " << 0 << " ▁ to ▁ " << i << endl ; return ; }