Amazon Interview Question

Identify unique substrings strings inside a larger string