Visa Inc. Interview Question

String manipulation leet code question