Pregunta de entrevista de Amazon

Technical interview question was 'Concatenated Words' on LeetCode