Solutions for Sub string with Distinct Characters