Substring with Concatenation of All Words cache