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.