Sponsored
Use these hints if you're stuck. Try solving on your own first.
Use two HashMap to store the counts of distinct letters in the left and right substring divided by the current index.
Solve with full IDE support and test cases