Cisco Interview Question

leet code medium about string manipulation