Question: Assume that string is a string of digits. Return the sum of the non-overlapping numbers ending in '9' in stringe. If there are no digits

Assume that string is a string of digits. Return the sum of the non-overlapping numbers ending in '9' in stringe. If there are no digits '9' in string, then return 0. For example, add9('123') is a add9('119') is 119 odd9('0919293949596979891129) is o.19. 29 89 1129 = 1570
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
