Substrings and distinct characters

Problem Name:
Substrings and distinct characters
Site:HackerEarth
Links:
Tags: