Bitdefender Interview Question

One simple algorithm with strings, you could have done it in any programming language.