Sponsored
Use these hints if you're stuck. Try solving on your own first.
Keep track of where the next character starts. At the end, you want to know if you started on the last bit.
Solve with full IDE support and test cases