Frage im Vorstellungsgespräch bei Publicis Sapient

Some coding round i got stuck .. almost based on strings