If curr_power is equal to target power we found a substring starting from index 0 and ending at index i .
if ( curr_power == power ) { cout << " Substring ▁ from ▁ index ▁ " << 0 << " ▁ to ▁ " << i << " ▁ has ▁ power ▁ " << power << endl ; return ; }