Robinhood Interview Question

Get all unique substrings of a given string