Sponsored
Use these hints if you're stuck. Try solving on your own first.
Try using a set to find out the number of distinct characters in a substring.
Solve with full IDE support and test cases