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 ) { Console . WriteLine ( " Substring ▁ from ▁ index ▁ 0" + " ▁ to ▁ " + i + " ▁ has ▁ power ▁ " + power ) ; return ; }