NZXT interview question

String algorithm problems that require logic