Nagarro Interview Question

find all substrings containing distinct letter.