Given 2 non-negative Int
s, return their sum, so long as the sum has the same number of digits as the first int
.
If the sum has more digits, just return the value of first Int
.
You may want to convert the Int
values to String
s to determine their length.
Stuck? You may find these lessons helpful: