JPMorganChase Interview Question

First Coding Question: Given a string, you have to find how many different substrings exist in it that have no repeating characters.