Fidelity Investments Interview Question

Leet code medium about string manipulation