NZXT Interview Question

String algorithm problems that require logic