Tracxn Interview Question

DSA question string based