Sponsored
Use these hints if you're stuck. Try solving on your own first.
Try a brute force solution where you check every substring.
Use a Hash map to keep track of the substrings.
Solve with full IDE support and test cases