Amazon Interview Question

Leetcode problem Longest Duplicate Substring