Pregunta de entrevista de Gartner

Python questions related to string concat and find possible target sum in list