Frage im Vorstellungsgespräch bei Cognizant

questions about strings, dynamic programming and algorithms complexity