Sponsored
Use these hints if you're stuck. Try solving on your own first.
You need to check at most 2 characters to determine which character comes next.
Solve with full IDE support and test cases