Amazon Interview Question

Unique prefix of a string. It can be solved using tries.