Pergunta de entrevista da empresa Barclays

Medium-Hard DSA question on string manipulation and pattern detections