Nagarro interview question

find all substrings containing distinct letter.