If curr_sum > length of wire increment start by 1 and decrement count by 1 and update the new curr_sum
else if ( curr_sum > L ) { curr_sum = curr_sum - ( ( double ) arr [ start ] * Pi ) ; curr_sum -= 1 ; start ++ ; curr_count -- ; }