The example seems to contradict the problem statement.
The solution/rspec logic seems to be in sync with the example
The example seems to contradict the problem statement.
The solution/rspec logic seems to be in sync with the example
I do not see anything contradictory about the example. All the odd number characters with 1 as the first character, are lowercase and all the even number characters are uppercase.
It’s talking in human terms so it’s not using zero-based indexing. You’ll have to adjust for that in your code.