Sponsored
Solve with full IDE support and test cases
Use these hints if you're stuck. Try solving on your own first.
For each character <code>c</code>, store the first occurrence of its uppercase and the last occurrence of its lowercase.