Amazon Interview Question

An LC easy about strings