Sponsored
Use these hints if you're stuck. Try solving on your own first.
Use a HashMap and check all the substrings.
Solve with full IDE support and test cases