Palindrome Partitioning II, Substring With Concatenation of All Words

Exercises from LeetCode, they are both accepted